summaryrefslogblamecommitdiff
path: root/test/files/run/reify_nested_outer_refers_to_global.scala
blob: f34e4fe04b2143dc66497ca9c1188cd9a14653f6 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                            
import scala.reflect.mirror._

object Test extends App {
  val code = {
    val x = 2
    val outer = reify{x}
    reify{
      val x = 42
      outer.eval
    };
  }

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