summaryrefslogblamecommitdiff
path: root/test/files/neg/t6385.scala
blob: cec58eec9e01305ae1c7cadbededae5ce2b8ee3d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                     
object N {
   def main(args: Array[String]) {
      val y: AA[Int] = C(2)
      val c: Int = y.x.y
      println(c)
   }
}
trait AA[T] extends Any {
   def x: C[T]
}
case class C[T](val y: T) extends AnyVal with AA[T] {
   def x = this
}