aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/macro-reify-typetag-typeparams-notags/Test.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/macro-reify-typetag-typeparams-notags/Test.scala')
-rw-r--r--tests/untried/neg/macro-reify-typetag-typeparams-notags/Test.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/untried/neg/macro-reify-typetag-typeparams-notags/Test.scala b/tests/untried/neg/macro-reify-typetag-typeparams-notags/Test.scala
new file mode 100644
index 000000000..504f7327c
--- /dev/null
+++ b/tests/untried/neg/macro-reify-typetag-typeparams-notags/Test.scala
@@ -0,0 +1,9 @@
+import scala.reflect.runtime.universe._
+
+object Test extends App {
+ def fooNoTypeTag[T] = {
+ println(implicitly[TypeTag[T]])
+ println(implicitly[TypeTag[List[T]]])
+ }
+ fooNoTypeTag[Int]
+}