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