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.
2 parents cb0ebac + 5e2990c commit 0660c3eCopy full SHA for 0660c3e
compiler/test-resources/repl/i4184
@@ -0,0 +1,10 @@
1
+scala> object foo { class Foo }
2
+// defined object foo
3
+scala> object bar { class Foo }
4
+// defined object bar
5
+scala> implicit def eqFoo: Eq[foo.Foo, foo.Foo] = Eq
6
+def eqFoo: Eq[foo.Foo, foo.Foo]
7
+scala> object Bar { new foo.Foo == new bar.Foo }
8
+1 | object Bar { new foo.Foo == new bar.Foo }
9
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^
10
+ | Values of types foo.Foo and bar.Foo cannot be compared with == or !=
tests/pos/i4184.scala
@@ -0,0 +1,3 @@
+object Bar {
+ true == (true: java.lang.Boolean)
+}
0 commit comments