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

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