summaryrefslogtreecommitdiff
path: root/test/files/run/reify_newimpl_50.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/reify_newimpl_50.scala')
-rw-r--r--test/files/run/reify_newimpl_50.scala14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/files/run/reify_newimpl_50.scala b/test/files/run/reify_newimpl_50.scala
new file mode 100644
index 0000000000..b81d72a4eb
--- /dev/null
+++ b/test/files/run/reify_newimpl_50.scala
@@ -0,0 +1,14 @@
+import scala.reflect.mirror._
+
+object Test extends App {
+ {
+ var y = 1
+ def x = { y += 2; y }
+ val code = reify {
+ println(x)
+ println(y)
+ println(x)
+ }
+ code.eval
+ }
+} \ No newline at end of file