summaryrefslogtreecommitdiff
path: root/test/files/run/t10026.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t10026.scala')
-rw-r--r--test/files/run/t10026.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/run/t10026.scala b/test/files/run/t10026.scala
new file mode 100644
index 0000000000..a56840c8c2
--- /dev/null
+++ b/test/files/run/t10026.scala
@@ -0,0 +1,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())
+ }
+}
+