diff options
Diffstat (limited to 'test/files/run/reify_newimpl_39.scala')
-rw-r--r-- | test/files/run/reify_newimpl_39.scala | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/run/reify_newimpl_39.scala b/test/files/run/reify_newimpl_39.scala new file mode 100644 index 0000000000..faa45d917d --- /dev/null +++ b/test/files/run/reify_newimpl_39.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; reify(z) } }; + { + val x = 2 + val code1 = foo() + val code2 = code1.eval + val code3 = code2.eval + println(code3.eval) + } + } +}
\ No newline at end of file |