summaryrefslogtreecommitdiff
path: root/test/pending/run/reify_closures11.scala
blob: ceb224c6d67d1d07d6e7fdb44fbac13255b47aa0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
import scala.reflect.mirror._
object Test extends App {
  def fun() = {
    def z() = 2
    reify{z}
  }

  val toolbox = mkToolBox()
  val dyn = toolbox.runExpr(fun().tree)
  val foo = dyn.asInstanceOf[Int]
  println(foo)
}