aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t762.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/t762.scala')
-rw-r--r--tests/pos/t762.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/pos/t762.scala b/tests/pos/t762.scala
new file mode 100644
index 000000000..c5bf39b0c
--- /dev/null
+++ b/tests/pos/t762.scala
@@ -0,0 +1,4 @@
+trait Foo { type T }
+trait Bar1 extends Foo { val x : Foo { type T <: Bar1.this.T } = this }
+trait Bar2 extends Foo { val x : Foo { type T = Bar2.this.T } = this }
+trait Bar3 extends Foo { val x : Foo { type T >: Bar3.this.T } = this }