summaryrefslogtreecommitdiff
path: root/test/files/pos/annotated-treecopy
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2013-10-18 16:52:28 +0200
committerEugene Burmako <xeno.by@gmail.com>2013-10-18 16:59:18 +0200
commita6d6550826c3fbd04948382893ce3147d298ffbc (patch)
tree0aa749c13ed646d8379f7e0ee037d87c97180f76 /test/files/pos/annotated-treecopy
parent3b4dc75710ac51de729224929690422d1b44e3ad (diff)
downloadscala-a6d6550826c3fbd04948382893ce3147d298ffbc.tar.gz
scala-a6d6550826c3fbd04948382893ce3147d298ffbc.tar.bz2
scala-a6d6550826c3fbd04948382893ce3147d298ffbc.zip
changes some manual tree constructions in macro tests to quasiquotes
Diffstat (limited to 'test/files/pos/annotated-treecopy')
-rw-r--r--test/files/pos/annotated-treecopy/Impls_Macros_1.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/files/pos/annotated-treecopy/Impls_Macros_1.scala b/test/files/pos/annotated-treecopy/Impls_Macros_1.scala
index 407d0b4bf3..9b7af0c3b8 100644
--- a/test/files/pos/annotated-treecopy/Impls_Macros_1.scala
+++ b/test/files/pos/annotated-treecopy/Impls_Macros_1.scala
@@ -38,10 +38,10 @@ object Macros {
val reifiedExpr = c.Expr[scala.reflect.runtime.universe.Expr[T => U]](reifiedTree)
val template =
c.universe.reify(new (T => U) with TypedFunction {
- override def toString = c.Expr[String](Literal(Constant(tp+" => "+ttag.tpe+" { "+b1.toString+" } "))).splice // DEBUG
+ override def toString = c.Expr[String](q"""${tp+" => "+ttag.tpe+" { "+b1.toString+" } "}""").splice // DEBUG
def tree = reifiedExpr.splice.tree
- val typeIn = c.Expr[String](Literal(Constant((tp.toString)))).splice
- val typeOut = c.Expr[String](Literal(Constant((ttag.tpe.toString)))).splice
+ val typeIn = c.Expr[String](q"${tp.toString}").splice
+ val typeOut = c.Expr[String](q"${ttag.tpe.toString}").splice
def apply(_arg: T): U = c.Expr[U](b1)(ttag.asInstanceOf[c.WeakTypeTag[U]]).splice
})
val untyped = c.resetLocalAttrs(template.tree)