diff options
Diffstat (limited to 'test/files/run/reify_newimpl_38.scala')
-rw-r--r-- | test/files/run/reify_newimpl_38.scala | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/files/run/reify_newimpl_38.scala b/test/files/run/reify_newimpl_38.scala new file mode 100644 index 0000000000..70ef49ecf7 --- /dev/null +++ b/test/files/run/reify_newimpl_38.scala @@ -0,0 +1,14 @@ +import scala.reflect.mirror._ + +object Test extends App { + { + val x = 42 + def foo() = reify{ val y = x; reify(y) }; + { + val x = 2 + val code1 = foo() + val code2 = code1.eval + println(code2.eval) + } + } +}
\ No newline at end of file |