aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/hk-variance.scala
blob: fec5cc36672c79cdc6dc6598b176025189da2de4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
object Test {

  def f[C[+X]] = ()

  class D[X] {}

  f[D] // error

  def g[E[-Y]] = f[E] // error

}