summaryrefslogtreecommitdiff
path: root/test/files/neg/t6336.scala
blob: b1d61f4dd22812bfb220c91c9dd11c8535a136d0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
object D {
  def main(args: Array[String]) {
    val a = new { def y[T](x: X[T]) = x.i }
    val b = new { def y[T](x: T): X[T] = new X(2) }
    val x = new X(3)
    val t = a.y(x)
    println(t)
  }
}

class X[T](val i: Int) extends AnyVal