summaryrefslogblamecommitdiff
path: root/test/files/run/t5272_2.scala
blob: 48b6a670bb0a473f7def001e18b9fb6f9ff620f6 (plain) (tree)
1
2
3
4
5
6
7
8






                                     
                                   




                                                  
                            
 
import scala.tools.nsc.reporters._
import scala.tools.nsc.Settings
import reflect.runtime.Mirror.ToolBox

object Test extends App {
  val code = scala.reflect.Code.lift{
    2 match {
      case x => println("okay" + x)
    }
  };

  val reporter = new ConsoleReporter(new Settings)
  val toolbox = new ToolBox(reporter)
  toolbox.runExpr(code.tree)
}