summaryrefslogtreecommitdiff
path: root/test/files/run/runtimeEval1.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/runtimeEval1.scala')
-rw-r--r--test/files/run/runtimeEval1.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/run/runtimeEval1.scala b/test/files/run/runtimeEval1.scala
new file mode 100644
index 0000000000..9497b52918
--- /dev/null
+++ b/test/files/run/runtimeEval1.scala
@@ -0,0 +1,9 @@
+import scala.reflect.runtime.universe._
+import scala.tools.reflect.Eval
+
+object Test extends App {
+ reify {
+ val x = 2
+ println(x)
+ }.eval
+} \ No newline at end of file