summaryrefslogtreecommitdiff
path: root/test/files/neg/t2078.scala
blob: 342ba088c7e85c4c634c74da5b4523b574c05015 (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]
  println(b.f.x)
}