diff options
Diffstat (limited to 'tests/pending/run/t5266_2.scala')
-rw-r--r-- | tests/pending/run/t5266_2.scala | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/pending/run/t5266_2.scala b/tests/pending/run/t5266_2.scala new file mode 100644 index 000000000..9b33910d0 --- /dev/null +++ b/tests/pending/run/t5266_2.scala @@ -0,0 +1,16 @@ +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 + def y = x + println(y) + }; + + val toolbox = cm.mkToolBox() + val evaluated = toolbox.eval(code.tree) + println("evaluated = " + evaluated) +}
\ No newline at end of file |