summaryrefslogtreecommitdiff
path: root/test/files/neg/t8869.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t8869.scala')
-rw-r--r--test/files/neg/t8869.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/neg/t8869.scala b/test/files/neg/t8869.scala
new file mode 100644
index 0000000000..0c7f0c9451
--- /dev/null
+++ b/test/files/neg/t8869.scala
@@ -0,0 +1,10 @@
+class TC[T[_]] {
+ def identity[A](a: T[A]): T[A] = a
+}
+object Test {
+ def value: TC[({type l1[x] = Option})#l1] = ??? // error not reported!
+
+ type l2[x] = Option // error correctly reported
+ def value1: TC[l2] = ???
+}
+