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

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