Skip to content

Commit 6ee3c62

Browse files
Merge pull request #4911 from dotty-staging/fix-#1287
Fix #1287: Add regression test
2 parents e612d55 + 5601079 commit 6ee3c62

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

tests/pos/i1287/Foo.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
private object Foo {
2+
val x: Int = 1
3+
}

tests/pos/i1287/Test.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
object Test {
2+
val a = Foo.x
3+
}

0 commit comments

Comments
 (0)