blob: 66b18c790e4f4ef2af8b0a26f64956f171b7d200 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
Type in expressions to have them evaluated.
Type :help for more information.
scala>
scala> import scala.reflect.mirror._
import scala.reflect.mirror._
scala> {
val x = 2
val code = reify {
val y = reify { x }
y.eval
}
println(code.eval)
}
<console>:15: this splice cannot be resolved statically
y.eval
^
2
scala>
scala>
|