summaryrefslogtreecommitdiff
path: root/test/files/run/t10026.scala
blob: a56840c8c2897fa8d0b5ae9bbf44768a6b37054b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
import scala.reflect.runtime.universe
import scala.tools.reflect.ToolBox

object Test {
  def main(args: Array[String]): Unit = {
    val classloader = getClass.getClassLoader
    val toolbox = universe.runtimeMirror(classloader).mkToolBox()
    println(toolbox.compile(toolbox.parse("Array(1, 2, 3).toList")).apply())
  }
}