We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6654f76 commit 613ff30Copy full SHA for 613ff30
tests/neg/equality1.scala
@@ -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