aboutsummaryrefslogblamecommitdiff
path: root/tests/pos/erasure.scala
blob: d794e9186d7a92e7be6e2cee7f86aac8b2ab90e6 (plain) (tree)
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)

}