summaryrefslogtreecommitdiff
path: root/test/files/pos/matthias3.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/matthias3.scala')
-rw-r--r--test/files/pos/matthias3.scala13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/files/pos/matthias3.scala b/test/files/pos/matthias3.scala
new file mode 100644
index 0000000000..6e86afeca6
--- /dev/null
+++ b/test/files/pos/matthias3.scala
@@ -0,0 +1,13 @@
+
+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 };
+}
+