summaryrefslogtreecommitdiff
path: root/test/files/run/reify_newimpl_48.scala
blob: 9899bc09a0455bd96c6ddacd314b02e37da7dda8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import scala.reflect.runtime.universe._
import scala.tools.reflect.ToolBox
import scala.tools.reflect.Eval

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

  val outer2 = {
    val x = 3
    reify{x}
  }

  val code = reify{
    val x = 4
    x + outer1.splice + outer2.splice
  }

  println(code.eval)
}