summaryrefslogblamecommitdiff
path: root/test/files/run/t5273_2a.scala
blob: a7a336d8a7dc4c33d6ffd8e81e032b249e1edba4 (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{
    val foo :: bar :: _ = List(1, 2, 3)
    println(foo * bar)
  };

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