summaryrefslogtreecommitdiff
path: root/test/pending/neg/t2994b.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/pending/neg/t2994b.scala')
-rw-r--r--test/pending/neg/t2994b.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/pending/neg/t2994b.scala b/test/pending/neg/t2994b.scala
new file mode 100644
index 0000000000..20be85eb58
--- /dev/null
+++ b/test/pending/neg/t2994b.scala
@@ -0,0 +1,8 @@
+trait curry[s[_]] { type f = Double }
+
+// a1 and a2 fail to compile, but all three should fail.
+class A {
+ type a1[s[_ <: Int]] = curry[s]
+ type a2[s[_ <: Int]] = curry[s]#f
+ type a3[s[_ <: Int]] = Set[curry[s]#f]
+}