summaryrefslogtreecommitdiff
path: root/test/files/run/reify_newimpl_05.scala
blob: 85c1711bdb1d7868f1bf818aecfc19ff2b76a243 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
import scala.reflect.mirror._

object Test extends App {
  {
    val code = reify {
      var x = 2
      def y = x // forcibly captures x
      reify{x}.eval
    }
    println(code.eval)
  }
}