aboutsummaryrefslogtreecommitdiff
path: root/tests/disabled/macro/run/reify_newimpl_40.scala
blob: 1bc37973f81d2214b2c4d63e0e03aec8c7434bb4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval

object Test extends dotty.runtime.LegacyApp {
  {
    val x = 42
    def foo() = reify{ val y = x; reify{ val z = y * x; reify(z * x) } };
    {
      val x = 2
      val code1 = foo()
      val code2 = code1.eval
      val code3 = code2.eval
      println(code3.eval)
    }
  }
}