diff options
Diffstat (limited to 'tests/disabled/macro/run/macro-reify-ref-to-packageless')
-rw-r--r-- | tests/disabled/macro/run/macro-reify-ref-to-packageless/Impls_1.scala | 6 | ||||
-rw-r--r-- | tests/disabled/macro/run/macro-reify-ref-to-packageless/Test_2.scala | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/disabled/macro/run/macro-reify-ref-to-packageless/Impls_1.scala b/tests/disabled/macro/run/macro-reify-ref-to-packageless/Impls_1.scala new file mode 100644 index 000000000..38ec6f022 --- /dev/null +++ b/tests/disabled/macro/run/macro-reify-ref-to-packageless/Impls_1.scala @@ -0,0 +1,6 @@ +import scala.reflect.macros.blackbox.Context + +object Impls { + val `Answer to the Ultimate Question of Life, the Universe, and Everything` = 42 + def foo(c: Context) = c.universe.reify { `Answer to the Ultimate Question of Life, the Universe, and Everything` } +} diff --git a/tests/disabled/macro/run/macro-reify-ref-to-packageless/Test_2.scala b/tests/disabled/macro/run/macro-reify-ref-to-packageless/Test_2.scala new file mode 100644 index 000000000..ff5b60a6a --- /dev/null +++ b/tests/disabled/macro/run/macro-reify-ref-to-packageless/Test_2.scala @@ -0,0 +1,4 @@ +object Test extends dotty.runtime.LegacyApp { + def foo: Int = macro Impls.foo + println(foo) +}
\ No newline at end of file |