blob: a983a92324f981e9312261b4a91bf414b46e2114 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import scala.reflect.mirror._
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)
}
}
}
|