diff options
Diffstat (limited to 'tests/untried/neg/macro-reify-typetag-useabstypetag/Test.scala')
-rw-r--r-- | tests/untried/neg/macro-reify-typetag-useabstypetag/Test.scala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/untried/neg/macro-reify-typetag-useabstypetag/Test.scala b/tests/untried/neg/macro-reify-typetag-useabstypetag/Test.scala new file mode 100644 index 000000000..95b8dfc99 --- /dev/null +++ b/tests/untried/neg/macro-reify-typetag-useabstypetag/Test.scala @@ -0,0 +1,9 @@ +import scala.reflect.runtime.universe._ + +object Test extends App { + def fooTypeTag[T: WeakTypeTag] = { + println(implicitly[TypeTag[T]]) + println(implicitly[TypeTag[List[T]]]) + } + fooTypeTag[Int] +} |