aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/hkwild.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-12-19 16:35:48 +0100
committerFelix Mulder <felix.mulder@gmail.com>2016-12-20 18:33:45 +0100
commitdbdb123ae7180b66e5d29ad4dd89b746641a3457 (patch)
treea150e8f6e74fcb123f504386ea899627f679b048 /tests/pos/hkwild.scala
parent1fec473169c1705d61c6a0d85efb14f25ba1cd43 (diff)
downloaddotty-dbdb123ae7180b66e5d29ad4dd89b746641a3457.tar.gz
dotty-dbdb123ae7180b66e5d29ad4dd89b746641a3457.tar.bz2
dotty-dbdb123ae7180b66e5d29ad4dd89b746641a3457.zip
Fix subtyping of hk types with wildcard arguments
Argument comparison of hk types did not take into account that the compared types could have themselves wildcard arguments.
Diffstat (limited to 'tests/pos/hkwild.scala')
-rw-r--r--tests/pos/hkwild.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/pos/hkwild.scala b/tests/pos/hkwild.scala
new file mode 100644
index 000000000..49bea7d01
--- /dev/null
+++ b/tests/pos/hkwild.scala
@@ -0,0 +1,6 @@
+class Test[T1](val x: T1) {
+ def invert[El1, CC1[X]](implicit w1: T1 <:< CC1[El1]) = {
+ val buf: CC1[_] = w1(x)
+ ???
+ }
+}