diff options
Diffstat (limited to 'tests/untried/neg/interop_typetags_arenot_classmanifests.scala')
-rw-r--r-- | tests/untried/neg/interop_typetags_arenot_classmanifests.scala | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/untried/neg/interop_typetags_arenot_classmanifests.scala b/tests/untried/neg/interop_typetags_arenot_classmanifests.scala new file mode 100644 index 000000000..04857aaa6 --- /dev/null +++ b/tests/untried/neg/interop_typetags_arenot_classmanifests.scala @@ -0,0 +1,11 @@ +import scala.reflect.runtime.universe._ + +object Test extends App { + def typeTagIsnotClassManifest[T: TypeTag] = { + println(classManifest[T]) + } + + typeTagIsnotClassManifest[Int] + typeTagIsnotClassManifest[String] + typeTagIsnotClassManifest[Array[Int]] +} |