diff options
Diffstat (limited to 'test/files/neg/macro-reify-splice-splice/Macros_1.scala')
-rw-r--r-- | test/files/neg/macro-reify-splice-splice/Macros_1.scala | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/neg/macro-reify-splice-splice/Macros_1.scala b/test/files/neg/macro-reify-splice-splice/Macros_1.scala new file mode 100644 index 0000000000..691f22ad07 --- /dev/null +++ b/test/files/neg/macro-reify-splice-splice/Macros_1.scala @@ -0,0 +1,11 @@ +import scala.reflect.macros.{BlackboxContext => Ctx} + +object Macros { + def foo = macro Impls.foo + + object Impls { + def foo(c: Ctx) = c.universe.reify { + { c.universe.reify(c.universe.reify("hello world")) }.splice.splice + } + } +}
\ No newline at end of file |