1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
object erasure { class C(x: Int) { def this() = this(0) } import java.lang._ def const[T](x: T, y: T) = x val x = 2 val y = const(x, 3) }