From 3b4dc75710ac51de729224929690422d1b44e3ad Mon Sep 17 00:00:00 2001 From: Eugene Burmako Date: Thu, 17 Oct 2013 19:12:59 +0200 Subject: deprecates raw tree manipulation facilities in macros.Context --- test/files/run/repl-term-macros.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/files/run/repl-term-macros.scala') diff --git a/test/files/run/repl-term-macros.scala b/test/files/run/repl-term-macros.scala index f826259be9..9824bf49cb 100644 --- a/test/files/run/repl-term-macros.scala +++ b/test/files/run/repl-term-macros.scala @@ -5,15 +5,15 @@ object Test extends ReplTest { import scala.reflect.macros.Context import language.experimental.macros -def impl1(c: Context) = c.literalUnit +def impl1(c: Context) = { import c.universe._; c.Expr[Unit](Literal(Constant(()))) } def foo1 = macro impl1 foo1 -def impl2(c: Context)() = c.literalUnit +def impl2(c: Context)() = { import c.universe._; c.Expr[Unit](Literal(Constant(()))) } def foo2() = macro impl2 foo2() -def impl3(c: Context)(x: c.Expr[Int])(y: c.Expr[Int]) = c.literalUnit +def impl3(c: Context)(x: c.Expr[Int])(y: c.Expr[Int]) = { import c.universe._; c.Expr[Unit](Literal(Constant(()))) } def foo3(x: Int)(y: Int) = macro impl3 foo3(2)(3) """ -- cgit v1.2.3