diff options
Diffstat (limited to 'test/files/neg/interop_classtags_arenot_manifests.scala')
-rw-r--r-- | test/files/neg/interop_classtags_arenot_manifests.scala | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/test/files/neg/interop_classtags_arenot_manifests.scala b/test/files/neg/interop_classtags_arenot_manifests.scala index 7351f7e305..391143c6e8 100644 --- a/test/files/neg/interop_classtags_arenot_manifests.scala +++ b/test/files/neg/interop_classtags_arenot_manifests.scala @@ -1,12 +1,6 @@ -object Test extends App { - def arrayTagIsnotManifest[T: ArrayTag] = { - println(manifest[T]) - } - - arrayTagIsnotManifest[Int] - arrayTagIsnotManifest[String] - arrayTagIsnotManifest[Array[Int]] +import scala.reflect.{ClassTag, classTag} +object Test extends App { def classTagIsnotManifest[T: ClassTag] = { println(manifest[T]) } |