aboutsummaryrefslogtreecommitdiff
path: root/tests/new/t1659.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/new/t1659.scala')
-rw-r--r--tests/new/t1659.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/new/t1659.scala b/tests/new/t1659.scala
new file mode 100644
index 000000000..10470d66f
--- /dev/null
+++ b/tests/new/t1659.scala
@@ -0,0 +1,4 @@
+trait Y { type X }
+trait W { def u[A](v : Y { type X = A }) : Unit }
+class Z extends W { def u[A](v : Y { type X = A }) = null }
+