Skip to content

Commit 613ff30

Browse files
committed
Add test case that eqAny unimport works
1 parent 6654f76 commit 613ff30

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/neg/equality1.scala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import dotty.DottyPredef.{eqAny => _, _}
2+
3+
object equality1 {
4+
class A
5+
class B
6+
new A == new B // error: cannot compare
7+
}

0 commit comments

Comments
 (0)