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