Skip to content

Commit 12eeb69

Browse files
smarterodersky
authored andcommitted
Add failing test case demonstrating scala#2780
1 parent c792e95 commit 12eeb69

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

tests/run/i2780/Base.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package bla;
2+
3+
public class Base {
4+
protected String foo = "";
5+
}

tests/run/i2780/Test.scala

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
class Foo extends bla.Base {
2+
class Inner {
3+
println(foo)
4+
}
5+
}
6+
7+
object Test {
8+
def main(args: Array[String]): Unit = {
9+
val f = new Foo
10+
new f.Inner
11+
}
12+
}

0 commit comments

Comments
 (0)