summaryrefslogtreecommitdiff
path: root/test/files/run/macro-expand-tparams-prefix-b/Impls_1.scala
diff options
context:
space:
mode:
authorJosh Suereth <Joshua.Suereth@gmail.com>2012-08-07 15:07:24 -0700
committerJosh Suereth <Joshua.Suereth@gmail.com>2012-08-07 15:07:24 -0700
commitc957bf808352364467243875b84b1b7d103caace (patch)
treeeaed9ae5f33cc4909912a5e8219f771fff791b91 /test/files/run/macro-expand-tparams-prefix-b/Impls_1.scala
parent6b3d36bc19cc82350c3754b0b91fb074a443d9bc (diff)
parent788478d3ab7dbb6386932eb8cb58dfcc5ee950b1 (diff)
downloadscala-c957bf808352364467243875b84b1b7d103caace.tar.gz
scala-c957bf808352364467243875b84b1b7d103caace.tar.bz2
scala-c957bf808352364467243875b84b1b7d103caace.zip
Merge pull request #1080 from scalamacros/ticket/6186
SI-6186 TypeTags no longer supported in macros
Diffstat (limited to 'test/files/run/macro-expand-tparams-prefix-b/Impls_1.scala')
-rw-r--r--test/files/run/macro-expand-tparams-prefix-b/Impls_1.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/files/run/macro-expand-tparams-prefix-b/Impls_1.scala b/test/files/run/macro-expand-tparams-prefix-b/Impls_1.scala
index 4d58467638..7e0fa26569 100644
--- a/test/files/run/macro-expand-tparams-prefix-b/Impls_1.scala
+++ b/test/files/run/macro-expand-tparams-prefix-b/Impls_1.scala
@@ -2,10 +2,10 @@ import scala.reflect.runtime.universe._
import scala.reflect.macros.{Context => Ctx}
object Impls {
- def foo[T: c.TypeTag, U: c.TypeTag](c: Ctx)(x: c.Expr[U]) = {
+ def foo[T: c.AbsTypeTag, U: c.AbsTypeTag](c: Ctx)(x: c.Expr[U]) = {
import c.universe._
- val T = implicitly[c.TypeTag[T]]
- val U = implicitly[c.TypeTag[U]]
+ val T = implicitly[c.AbsTypeTag[T]]
+ val U = implicitly[c.AbsTypeTag[U]]
val body = Apply(Select(Ident(definitions.PredefModule), newTermName("println")), List(Literal(Constant(T.toString + " " + U.toString))))
c.Expr[Unit](body)
}