aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run/reify_newimpl_50.scala
blob: 8ecdeb55c778f67453350eeac3b475196480c1b1 (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 {
  {
    var y = 1
    def x = { y += 2; y }
    val code = reify {
      println(x)
      println(y)
      println(x)
    }
    code.eval
  }
}