diff options
Diffstat (limited to 'tests/untried/pos/t2693.scala')
-rw-r--r-- | tests/untried/pos/t2693.scala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/untried/pos/t2693.scala b/tests/untried/pos/t2693.scala new file mode 100644 index 000000000..5d4d0380c --- /dev/null +++ b/tests/untried/pos/t2693.scala @@ -0,0 +1,6 @@ +class A { + trait T[A] + def usetHk[T[_], A](ta: T[A]) = 0 + usetHk(new T[Int]{}: T[Int]) + usetHk(new T[Int]{}) // fails with: found: java.lang.Object with T[Int], required: ?T[ ?A ] +} |