blob: 8e4ad0d09086f6f5c52b6cd704c14892b92e80f4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
object Test extends App {
def foo1[T] = erasureTag[T]
println(foo1[Int].erasure)
println(foo1[String].erasure)
println(foo1[Array[Int]].erasure)
def foo2[T <: Int] = erasureTag[T]
println(foo2[Int].erasure)
}
|