summaryrefslogtreecommitdiff
path: root/test/files/run/macro-typecheck-macrosdisabled
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-typecheck-macrosdisabled
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-typecheck-macrosdisabled')
-rw-r--r--test/files/run/macro-typecheck-macrosdisabled/Impls_Macros_1.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/files/run/macro-typecheck-macrosdisabled/Impls_Macros_1.scala b/test/files/run/macro-typecheck-macrosdisabled/Impls_Macros_1.scala
index ff535fea8d..2532cfd2b9 100644
--- a/test/files/run/macro-typecheck-macrosdisabled/Impls_Macros_1.scala
+++ b/test/files/run/macro-typecheck-macrosdisabled/Impls_Macros_1.scala
@@ -7,7 +7,7 @@ object Macros {
val ru = Select(Select(Select(Select(Ident(TermName("scala")), TermName("reflect")), TermName("runtime")), TermName("package")), TermName("universe"))
val tree1 = Apply(Select(ru, TermName("reify")), List(Literal(Constant(2))))
val ttree1 = c.typeCheck(tree1, withMacrosDisabled = false)
- c.literal(ttree1.toString)
+ c.Expr[String](Literal(Constant(ttree1.toString)))
}
def foo_with_macros_enabled = macro impl_with_macros_enabled
@@ -23,7 +23,7 @@ object Macros {
val tree2 = Apply(Select(Ident(ru), TermName("reify")), List(Literal(Constant(2))))
val ttree2 = c.typeCheck(tree2, withMacrosDisabled = true)
- c.literal(ttree2.toString)
+ c.Expr[String](Literal(Constant(ttree2.toString)))
}
def foo_with_macros_disabled = macro impl_with_macros_disabled