summaryrefslogblamecommitdiff
path: root/test/files/run/reify_closures10.scala
blob: 0ccce77a9429d14e4a8a225d34d397aeb11ce2d1 (plain) (tree)
1
2
3
4
5
6
7
8
9
                             

                         

           
                                         
 
                           
                                     
 
import scala.reflect.mirror._

object Test extends App {
  val x = 2
  val y = 3
  val code = reify{println(x + y); x + y}

  val toolbox = mkToolBox()
  println(toolbox.runExpr(code.tree))
}