summaryrefslogtreecommitdiff
path: root/test/files/run/macro-bundle-static
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2013-10-17 19:12:59 +0200
committerEugene Burmako <xeno.by@gmail.com>2013-10-18 16:58:51 +0200
commit3b4dc75710ac51de729224929690422d1b44e3ad (patch)
tree27337cd2a0a66e98650488a5cbff4e4dcb499745 /test/files/run/macro-bundle-static
parent54707cb45018170e31eb188a9a694ab9b0728f71 (diff)
downloadscala-3b4dc75710ac51de729224929690422d1b44e3ad.tar.gz
scala-3b4dc75710ac51de729224929690422d1b44e3ad.tar.bz2
scala-3b4dc75710ac51de729224929690422d1b44e3ad.zip
deprecates raw tree manipulation facilities in macros.Context
Diffstat (limited to 'test/files/run/macro-bundle-static')
-rw-r--r--test/files/run/macro-bundle-static/Impls_Macros_1.scala8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/files/run/macro-bundle-static/Impls_Macros_1.scala b/test/files/run/macro-bundle-static/Impls_Macros_1.scala
index 831dac6df5..79597ec4e5 100644
--- a/test/files/run/macro-bundle-static/Impls_Macros_1.scala
+++ b/test/files/run/macro-bundle-static/Impls_Macros_1.scala
@@ -4,8 +4,8 @@ import scala.language.experimental.macros
object Enclosing {
trait Impl extends Macro {
- def mono = c.literalUnit
- def poly[T: c.WeakTypeTag] = c.literal(c.weakTypeOf[T].toString)
+ def mono = { import c.universe._; c.Expr[Unit](Literal(Constant(()))) }
+ def poly[T: c.WeakTypeTag] = { import c.universe._; c.Expr[String](Literal(Constant(c.weakTypeOf[T].toString))) }
def weird = macro mono
}
}
@@ -18,8 +18,8 @@ object Macros {
package pkg {
object Enclosing {
trait Impl extends Macro {
- def mono = c.literalTrue
- def poly[T: c.WeakTypeTag] = c.literal(c.weakTypeOf[T].toString + c.weakTypeOf[T].toString)
+ def mono = { import c.universe._; c.Expr[Boolean](Literal(Constant(true))) }
+ def poly[T: c.WeakTypeTag] = { import c.universe._; c.Expr[String](Literal(Constant(c.weakTypeOf[T].toString + c.weakTypeOf[T].toString))) }
def weird = macro mono
}
}