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