Skip to content

Commit 3762ba7

Browse files
committed
Fix #4184: Add regression test
1 parent 2ce89da commit 3762ba7

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

compiler/test-resources/repl/i4184

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
object Bar {
2+
true == (true: java.lang.Boolean)
3+
}

0 commit comments

Comments
 (0)