summaryrefslogblamecommitdiff
path: root/test/files/run/t7558.scala
blob: bfcaaba5ccd53c70cf8c110d4833de9a20e40c00 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                    
object Test extends App {
  val cm = reflect.runtime.currentMirror
  val u = cm.universe
  import scala.tools.reflect.ToolBox
  val tb = cm.mkToolBox()
  val t = { var x = "ab".toList; u.reify { x = x.reverse; x }.tree }
  val evaluated = tb.eval(t)
  assert(evaluated == "ba".toList, evaluated)
}