aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t2693.scala
blob: 537e6d8abdf9e6c09f9ce6eea9afc14a5be18f1f (plain) (blame)
1
2
3
4
5
6
class A {
  trait Tr[A]
  def usetHk[T[_], A](ta: T[A]) = 0
  usetHk(new Tr[Int]{}: Tr[Int])
  usetHk(new Tr[Int]{}) // fails with: found: java.lang.Object with T[Int], required: ?T[ ?A ]
}