diff options
Diffstat (limited to 'tests/disabled/macro/pos/t8001')
-rw-r--r-- | tests/disabled/macro/pos/t8001/Macros_1.scala | 10 | ||||
-rw-r--r-- | tests/disabled/macro/pos/t8001/Test_2.scala | 4 |
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/disabled/macro/pos/t8001/Macros_1.scala b/tests/disabled/macro/pos/t8001/Macros_1.scala new file mode 100644 index 000000000..077082a9c --- /dev/null +++ b/tests/disabled/macro/pos/t8001/Macros_1.scala @@ -0,0 +1,10 @@ +import scala.language.experimental.macros +import scala.reflect.macros.blackbox.Context + +object Macros { + def foo: Unit = macro impl + def impl(c: Context) = { + import c.universe._ + q"()" + } +} diff --git a/tests/disabled/macro/pos/t8001/Test_2.scala b/tests/disabled/macro/pos/t8001/Test_2.scala new file mode 100644 index 000000000..55024506e --- /dev/null +++ b/tests/disabled/macro/pos/t8001/Test_2.scala @@ -0,0 +1,4 @@ +object Test extends App { + Macros.foo + (): Unit +} |