From d744921f855a6c5d4f4df62895bc3b17b8e0e532 Mon Sep 17 00:00:00 2001 From: Jason Zaugg Date: Wed, 18 Dec 2013 16:55:15 +0100 Subject: SI-8064 Automatic position repair for macro expansion - Replace NoPosition with the focus of the macro application - Focus all range positions, for example, those of spliced arguments --- test/files/pos/t8064b/Macro_1.scala | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/files/pos/t8064b/Macro_1.scala (limited to 'test/files/pos/t8064b/Macro_1.scala') diff --git a/test/files/pos/t8064b/Macro_1.scala b/test/files/pos/t8064b/Macro_1.scala new file mode 100644 index 0000000000..82582356c0 --- /dev/null +++ b/test/files/pos/t8064b/Macro_1.scala @@ -0,0 +1,11 @@ +import language.experimental.macros +import scala.reflect.macros.Context + +object Macro { + def apply(a: Any): Any = macro impl + def impl(c: Context)(a: c.Tree): c.Tree = { + import c.universe._ + + q"{$a; true}" + } +} -- cgit v1.2.3