Skip to content

Commit

Permalink
test case for scala/bug#7994
Browse files Browse the repository at this point in the history
  • Loading branch information
jxnu-liguobin committed Mar 25, 2021
1 parent 8a2cf63 commit 9bb0abf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/files/jvm/t7994s.check
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Test$$anon$1
null
Test$$anon$1$$anon$2
null
12 changes: 12 additions & 0 deletions test/files/jvm/t7994s.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
object Test {
def main(args: Array[String]): Unit = {
val o = new MyTest() {
val i: MyTest = new MyTest() {}
}
}
}

class MyTest {
println(this.getClass.getName)
println(this.getClass.getDeclaringClass)
}

0 comments on commit 9bb0abf

Please sign in to comment.