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

object Test extends App {
  val outer = {
    val x = 2
    reify{x}
  }

  val code = reify{
    val x = 42
    outer.splice
  }

  println(code.eval)
}