Skip to content

Commit 9bb0abf

Browse files
committed
test case for scala/bug#7994
1 parent 8a2cf63 commit 9bb0abf

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

test/files/jvm/t7994s.check

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Test$$anon$1
2+
null
3+
Test$$anon$1$$anon$2
4+
null

test/files/jvm/t7994s.scala

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
object Test {
2+
def main(args: Array[String]): Unit = {
3+
val o = new MyTest() {
4+
val i: MyTest = new MyTest() {}
5+
}
6+
}
7+
}
8+
9+
class MyTest {
10+
println(this.getClass.getName)
11+
println(this.getClass.getDeclaringClass)
12+
}

0 commit comments

Comments
 (0)