summaryrefslogtreecommitdiff
path: root/test/files/run/reify_newimpl_49.scala
blob: 68d968e28b999fb2919b963f47d4b668e0d1cafc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import scala.reflect.mirror._

object Test extends App {
  {
    var y = 1
    def x = { y += 2; y }
    val code = reify {
      def foo = y // ensures that y is the first freevar we find
      println(x)
      println(y)
      println(x)
    }
    code.eval
  }
}