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 2ce89da commit 3762ba7Copy full SHA for 3762ba7
compiler/test-resources/repl/i4184
@@ -0,0 +1,12 @@
1
+scala> object foo { class Foo }
2
+// defined object foo
3
+scala> object bar { class Foo }
4
+// defined object bar
5
+scala> object Bar { new foo.Foo == (new foo.Foo: bar.Foo) }
6
+1 | object Bar { new foo.Foo == (new foo.Foo: bar.Foo) }
7
+ | ^^^^^^^^^^^
8
+ | Found: foo.Foo
9
+ | Required: bar.Foo'
10
+ |
11
+ | where: Foo is a class in object foo
12
+ | Foo' is a class in object bar
tests/pos/i4184.scala
@@ -0,0 +1,3 @@
+object Bar {
+ true == (true: java.lang.Boolean)
+}
0 commit comments