aboutsummaryrefslogblamecommitdiff
path: root/tests/disabled/macro/run/reify_newimpl_05.scala
blob: 0ff5bb07c933301386e90ba4883728ff151725ab (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13



                                       
                                             







                                      
 
import scala.reflect.runtime.universe._
import scala.tools.reflect.ToolBox
import scala.tools.reflect.Eval

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