diff options
Diffstat (limited to 'test/files/neg/stable.scala')
-rw-r--r-- | test/files/neg/stable.scala | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/files/neg/stable.scala b/test/files/neg/stable.scala new file mode 100644 index 0000000000..fc21df732b --- /dev/null +++ b/test/files/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; +} |