diff options
Diffstat (limited to 'tests/disabled/macro/run/reify_newimpl_38.scala')
-rw-r--r-- | tests/disabled/macro/run/reify_newimpl_38.scala | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/disabled/macro/run/reify_newimpl_38.scala b/tests/disabled/macro/run/reify_newimpl_38.scala new file mode 100644 index 000000000..a313b7d8d --- /dev/null +++ b/tests/disabled/macro/run/reify_newimpl_38.scala @@ -0,0 +1,15 @@ +import scala.reflect.runtime.universe._ +import scala.tools.reflect.Eval + +object Test extends dotty.runtime.LegacyApp { + { + val x = 42 + def foo() = reify{ val y = x; reify(y) }; + { + val x = 2 + val code1 = foo() + val code2 = code1.eval + println(code2.eval) + } + } +} |