summaryrefslogtreecommitdiff
path: root/test/files/neg/t2078.scala
blob: 03eaa7ed0b85224b1ee4401f6547891a2e5654dd (plain) (blame)
1
2
3
4
5
6
7
8
9
class A[-S](y : S) {
  val f  = new { val x = y }
}

object Test extends App {
  val a = new A(1)
  val b = a : A[Nothing]
  b.f.x
}