aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run/interop_typetags_are_manifests.scala
blob: 5f5781323b0d0a813bcfe331dbbe13ca9b5c8ffe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
import scala.reflect.runtime.universe._
import scala.reflect.ClassTag
import internal._

object Test extends dotty.runtime.LegacyApp {
  def typeTagIsManifest[T: TypeTag : ClassTag] = {
    println(manifest[T])
  }

  typeTagIsManifest[Int]
  typeTagIsManifest[String]
  typeTagIsManifest[Array[Int]]
}