summaryrefslogtreecommitdiff
path: root/test/files/run/t9920.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t9920.scala')
-rw-r--r--test/files/run/t9920.scala17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/files/run/t9920.scala b/test/files/run/t9920.scala
new file mode 100644
index 0000000000..5dc32e99b7
--- /dev/null
+++ b/test/files/run/t9920.scala
@@ -0,0 +1,17 @@
+class C0
+trait T { self: C0 =>
+ def test = {
+ object Local
+
+ class C1 {
+ Local
+ }
+ new C1()
+ }
+}
+
+object Test extends C0 with T {
+ def main(args: Array[String]): Unit = {
+ test
+ }
+}