diff options
Diffstat (limited to 'test/files/run/macro-reify-typetag-usegroundtypetag/Test.scala')
-rw-r--r-- | test/files/run/macro-reify-typetag-usegroundtypetag/Test.scala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/run/macro-reify-typetag-usegroundtypetag/Test.scala b/test/files/run/macro-reify-typetag-usegroundtypetag/Test.scala new file mode 100644 index 0000000000..c9b210f35a --- /dev/null +++ b/test/files/run/macro-reify-typetag-usegroundtypetag/Test.scala @@ -0,0 +1,9 @@ +import scala.reflect.mirror._ + +object Test extends App { + def fooTypeTag[T: GroundTypeTag] = { + println(implicitly[TypeTag[T]]) + println(implicitly[TypeTag[List[T]]]) + } + fooTypeTag[Int] +}
\ No newline at end of file |