diff options
Diffstat (limited to 'test/files/run/macro-settings')
-rw-r--r-- | test/files/run/macro-settings/Impls_Macros_1.scala | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/files/run/macro-settings/Impls_Macros_1.scala b/test/files/run/macro-settings/Impls_Macros_1.scala index 83d80a5bff..851a987206 100644 --- a/test/files/run/macro-settings/Impls_Macros_1.scala +++ b/test/files/run/macro-settings/Impls_Macros_1.scala @@ -1,8 +1,11 @@ -import scala.reflect.macros.Context +import scala.reflect.macros.blackbox.Context object Impls { - def impl(c: Context) = c.universe.reify { - println(c.literal(c.settings.toString).splice) + def impl(c: Context) = { + import c.universe._ + reify { + println(c.Expr[String](Literal(Constant(c.settings.toString))).splice) + } } } |