aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run/reify_newimpl_39.scala
blob: 4b779fc0706907aa121945f883bcbcda585a4cfb (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; reify(z) } };
    {
      val x = 2
      val code1 = foo()
      val code2 = code1.eval
      val code3 = code2.eval
      println(code3.eval)
    }
  }
}