aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run/t5266_1.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pending/run/t5266_1.scala')
-rw-r--r--tests/pending/run/t5266_1.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/pending/run/t5266_1.scala b/tests/pending/run/t5266_1.scala
new file mode 100644
index 000000000..7bf73ac98
--- /dev/null
+++ b/tests/pending/run/t5266_1.scala
@@ -0,0 +1,15 @@
+import scala.reflect.runtime.universe._
+import scala.reflect.runtime.{universe => ru}
+import scala.reflect.runtime.{currentMirror => cm}
+import scala.tools.reflect.ToolBox
+
+object Test extends App {
+ val code = reify {
+ def x = 2
+ println(x)
+ };
+
+ val toolbox = cm.mkToolBox()
+ val evaluated = toolbox.eval(code.tree)
+ println("evaluated = " + evaluated)
+} \ No newline at end of file