summaryrefslogtreecommitdiff
path: root/test/files/run/erasuretags_basic.scala
blob: d894fdf2e9a2f9cd9e84ce9a1416e446c3e65ae5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
object Test extends App {
  def test[T: ErasureTag] = {
    println(implicitly[ErasureTag[T]].erasure)
    println(implicitly[ErasureTag[Array[T]]].erasure)
  }

  test[Int]
  test[List[Int]]
  test[List[String]]
  test[Map[Int, String]]

  test[Array[Int]]
  test[Array[List[Int]]]
  test[Array[List[String]]]
  test[Array[Map[Int, String]]]

  test[Array[Array[Int]]]
  test[Array[Array[List[Int]]]]
  test[Array[Array[List[String]]]]
  test[Array[Array[Map[Int, String]]]]
}