aboutsummaryrefslogblamecommitdiff
path: root/tests/untried/neg/t7872.scala
blob: 55480be6aeb97d43048cc8c224c32793e055e6c6 (plain) (tree)
1
2
3
4
5
6
7
8
9


             
                        




                                
trait Cov[+A]
trait Inv[-A]

object varianceExploit {
  type l[-a] = Cov[a]
  type x = {type l[-a] = Cov[a]}
  def foo[M[_]] = ()
  foo[({type l[+a] = Inv[a]})#l]
}