summaryrefslogtreecommitdiff
path: root/test/files/run/reify_newimpl_22.check
blob: dcb3e2889b5bf165bf8ff7d2ece5deb1f43da03b (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
25
26
27
28
29
Type in expressions to have them evaluated.
Type :help for more information.

scala> 

scala> import scala.reflect.runtime.universe._
import scala.reflect.runtime.universe._

scala> import scala.tools.reflect.ToolBox
import scala.tools.reflect.ToolBox

scala> import scala.tools.reflect.Eval
import scala.tools.reflect.Eval

scala> {
  val x = 2
  val code = reify {
    x
  }
  println(code.eval)
}
<console>:15: free term: Ident(newTermName("x")) defined by res0  in <console>:14:21
                val code = reify {
                                 ^
2

scala> 

scala>