diff options
Diffstat (limited to 'test/files/run/t5652b')
-rw-r--r-- | test/files/run/t5652b/t5652b_1.scala | 3 | ||||
-rw-r--r-- | test/files/run/t5652b/t5652b_2.scala | 9 |
2 files changed, 12 insertions, 0 deletions
diff --git a/test/files/run/t5652b/t5652b_1.scala b/test/files/run/t5652b/t5652b_1.scala new file mode 100644 index 0000000000..72ba5dcd82 --- /dev/null +++ b/test/files/run/t5652b/t5652b_1.scala @@ -0,0 +1,3 @@ +class A1 { + def f1 = { def g = 5 ; class A { def a = 0 } ; new A; g } +} diff --git a/test/files/run/t5652b/t5652b_2.scala b/test/files/run/t5652b/t5652b_2.scala new file mode 100644 index 0000000000..113736a24b --- /dev/null +++ b/test/files/run/t5652b/t5652b_2.scala @@ -0,0 +1,9 @@ +class A2 extends A1 { + def f2 = { def g = 5 ; class A { def a = 0 } ; new A; g } +} + +object Test extends A2 { + def main(args: Array[String]) { + println(Seq(classOf[A1], classOf[A2]).flatMap(_.getDeclaredMethods.map(_.toString).sorted).mkString("\n")) + } +} |