summaryrefslogblamecommitdiff
path: root/test/files/run/reify_varargs.scala
blob: 175cfb5db0fd65719142dce5cd5b82637e68f68d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                                  
                            
 
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 msg = java.text.MessageFormat.format(
      "On {1} there was {2} on planet {0}.",
      "Hoth", "the fifth of August", "a disturbance in the Force")
    println("Message="+msg)
  };

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