diff options
Diffstat (limited to 'test/files/pos/bug2693.scala')
-rw-r--r-- | test/files/pos/bug2693.scala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/pos/bug2693.scala b/test/files/pos/bug2693.scala new file mode 100644 index 0000000000..97732cf081 --- /dev/null +++ b/test/files/pos/bug2693.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 ] +}
\ No newline at end of file |