summaryrefslogtreecommitdiff
path: root/test/files/run/t6888.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t6888.scala')
-rw-r--r--test/files/run/t6888.scala19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/files/run/t6888.scala b/test/files/run/t6888.scala
new file mode 100644
index 0000000000..0c64cbe5b6
--- /dev/null
+++ b/test/files/run/t6888.scala
@@ -0,0 +1,19 @@
+class C {
+ val x = 1
+ object $ {
+ val y = x + x
+ class abc$ {
+ def xy = x + y
+ }
+ object abc$ {
+ def xy = x + y
+ }
+ }
+}
+
+object Test extends App {
+ val c = new C()
+ println(c.$.y)
+ println(c.$.abc$.xy)
+ println(new c.$.abc$().xy)
+}