Skip to content

Commit 1607ad8

Browse files
committed
Special-case ##, as a fast-track for 2.13.2
1 parent 0301bf9 commit 1607ad8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

output/src/main/scala/fix/scala213/ExplicitNonNullaryApplyJava.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ package fix.scala213
44
import ExplicitNonNullaryApplyJavaDefs._
55

66
class ExplicitNonNullaryApplyJava {
7-
???.##()
7+
???.##
88
???.getClass()
99
???.getClass
1010
???.hashCode()
@@ -14,7 +14,7 @@ class ExplicitNonNullaryApplyJava {
1414
???.asInstanceOf[Int]
1515
???.isInstanceOf[Int]
1616

17-
any.##()
17+
any.##
1818
any.getClass()
1919
any.getClass
2020
any.hashCode()

rewrites/src/main/scala/fix/scala213/ExplicitNonNullaryApply.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ final class ExplicitNonNullaryApply(global: LazyValue[ScalafixGlobal])
3636
def fix(tree: Tree, meth: Term, noTypeArgs: Boolean, noArgs: Boolean) = {
3737
for {
3838
name <- termName(meth)
39-
if handled.add(name)
39+
if handled.add(name) && name.value != "##" // fast-track https://github.com/scala/scala/pull/8814
4040
if noArgs
4141
if name.isReference
4242
if !name.parent.exists(_.is[Term.ApplyInfix])

0 commit comments

Comments
 (0)