summaryrefslogtreecommitdiff
path: root/test/files/run/reify_newimpl_40.scala
blob: 018bf720f36649e38f61847016e4ea0bf91a7544 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval

object Test extends App {
  {
    val x = 42
    def foo() = reify{ val y = x; reify{ val z = y * x; reify(z * x) } };
    {
      val x = 2
      val code1 = foo()
      val code2 = code1.eval
      val code3 = code2.eval
      println(code3.eval)
    }
  }
}