From 5acac4d806eb45afdf1e7716c727a97130b69651 Mon Sep 17 00:00:00 2001 From: Eugene Burmako Date: Thu, 7 Jun 2012 22:05:34 +0200 Subject: TypeTag => AbsTypeTag, ConcreteTypeTag => TypeTag This protects everyone from the confusion caused by stuff like this: https://issues.scala-lang.org/browse/SI-5884 --- test/files/neg/macro-reify-typetag-useabstypetag/Test.scala | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/files/neg/macro-reify-typetag-useabstypetag/Test.scala (limited to 'test/files/neg/macro-reify-typetag-useabstypetag') 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 -- cgit v1.2.3