summaryrefslogtreecommitdiff
path: root/test/neg/stable.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/neg/stable.scala')
-rw-r--r--test/neg/stable.scala17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/neg/stable.scala b/test/neg/stable.scala
new file mode 100644
index 0000000000..fc21df732b
--- /dev/null
+++ b/test/neg/stable.scala
@@ -0,0 +1,17 @@
+abstract class C { type T; val next: C = this }
+
+module test {
+
+ val x: C = new C { type T = int };
+ var y: C = x;
+ def z: C = x;
+
+ type a = x.T;
+ type b = y.T;
+ type c = z.T;
+ type d = x.next.next.T;
+
+ import x.T;
+
+ type e = T;
+}