aboutsummaryrefslogtreecommitdiff
path: root/tests/disabled/macro/run/reify_newimpl_47.scala
blob: c0ad6cbe5a005f248e7a480d0258fc592f26ba48 (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 dotty.runtime.LegacyApp {
  val outer = {
    val x = 2
    reify{x}
  }

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

  println(code.eval)
}