aboutsummaryrefslogtreecommitdiff
path: root/tests/disabled/macro/run/reify_newimpl_42.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/disabled/macro/run/reify_newimpl_42.scala')
-rw-r--r--tests/disabled/macro/run/reify_newimpl_42.scala17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/disabled/macro/run/reify_newimpl_42.scala b/tests/disabled/macro/run/reify_newimpl_42.scala
new file mode 100644
index 000000000..64c1cf345
--- /dev/null
+++ b/tests/disabled/macro/run/reify_newimpl_42.scala
@@ -0,0 +1,17 @@
+import scala.reflect.runtime.universe._
+import scala.tools.reflect.Eval
+
+object Test extends dotty.runtime.LegacyApp {
+ {
+ var _x = 42
+ def x = { val x0 = _x; _x += 1; x0 }
+ var _y = 1
+ def y = { val y0 = _y + _x; _y += y0; y0 }
+ val code = reify {
+ println(x)
+ println(y)
+ println(x)
+ }
+ code.eval
+ }
+}