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/pos/t5692a/Macros_1.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/files/pos/t5692a') diff --git a/test/files/pos/t5692a/Macros_1.scala b/test/files/pos/t5692a/Macros_1.scala index 06b5a3de36..fa3a0bcf32 100644 --- a/test/files/pos/t5692a/Macros_1.scala +++ b/test/files/pos/t5692a/Macros_1.scala @@ -1,6 +1,6 @@ import scala.reflect.macros.Context object Macros { - def impl[T](c: Context) = c.literalUnit + def impl[T](c: Context) = { import c.universe._; c.Expr[Unit](Literal(Constant(()))) } def foo[T] = macro impl[T] } \ No newline at end of file -- cgit v1.2.3