summaryrefslogtreecommitdiff
path: root/test/files/pos/matthias5.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/matthias5.scala')
-rw-r--r--test/files/pos/matthias5.scala12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/files/pos/matthias5.scala b/test/files/pos/matthias5.scala
new file mode 100644
index 0000000000..0dcb7f833d
--- /dev/null
+++ b/test/files/pos/matthias5.scala
@@ -0,0 +1,12 @@
+abstract class A() {
+ val y: A;
+}
+class B() extends A() {
+ val x = this;
+ val y: x.type = x;
+}
+abstract class C() {
+ val b: B = new B();
+ val a: A { val y: b.type };
+}
+