diff options
Diffstat (limited to 'tests/pending/run/trait-renaming')
-rw-r--r-- | tests/pending/run/trait-renaming/A_1.scala | 15 | ||||
-rw-r--r-- | tests/pending/run/trait-renaming/B_2.scala | 5 |
2 files changed, 20 insertions, 0 deletions
diff --git a/tests/pending/run/trait-renaming/A_1.scala b/tests/pending/run/trait-renaming/A_1.scala new file mode 100644 index 000000000..d0fab7bfc --- /dev/null +++ b/tests/pending/run/trait-renaming/A_1.scala @@ -0,0 +1,15 @@ +package bippy { + class A { + def f = { + trait B { + def f = 5 + } + trait C { + def g = 10 + } + new B with C { } + } + + def g = Class.forName("bippy.A$B$1$class") + } +} diff --git a/tests/pending/run/trait-renaming/B_2.scala b/tests/pending/run/trait-renaming/B_2.scala new file mode 100644 index 000000000..174e929fe --- /dev/null +++ b/tests/pending/run/trait-renaming/B_2.scala @@ -0,0 +1,5 @@ +object Test { + def main(args: Array[String]): Unit = { + (new bippy.A).g.getDeclaredMethods.map(_.toString).sorted foreach println + } +} |