aboutsummaryrefslogblamecommitdiff
path: root/tests/disabled/macro/run/reify_newimpl_48.scala
blob: 7d1c1d642445447ac1667e03777eb4d5d984ecb1 (plain) (tree)
1
2
3
4
5



                                       
                                             















                                     
 
import scala.reflect.runtime.universe._
import scala.tools.reflect.ToolBox
import scala.tools.reflect.Eval

object Test extends dotty.runtime.LegacyApp {
  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)
}