summaryrefslogtreecommitdiff
path: root/test/files/run/t7331b.scala
diff options
context:
space:
mode:
authorDen Shabalin <den.shabalin@gmail.com>2013-08-08 18:55:05 +0200
committerDen Shabalin <den.shabalin@gmail.com>2013-08-14 11:45:47 +0200
commitb4598b4a7826b76cc6405b448b50d6c20f7a5732 (patch)
tree11c03a03ec45b8e4f1f53c13cfef0f24667c5fa2 /test/files/run/t7331b.scala
parentd7ad291a0f93004fe9dc38f2414b77276f148c5c (diff)
downloadscala-b4598b4a7826b76cc6405b448b50d6c20f7a5732.tar.gz
scala-b4598b4a7826b76cc6405b448b50d6c20f7a5732.tar.bz2
scala-b4598b4a7826b76cc6405b448b50d6c20f7a5732.zip
SI-7331 remove all the wrapping code from toolbox
Change toolbox parsing to use `parseStats` parser entry point instead of current code-wrappign technique that makes positions much less useful to end users. There is also no need to create a compiler `Run` for parsing.
Diffstat (limited to 'test/files/run/t7331b.scala')
-rw-r--r--test/files/run/t7331b.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/run/t7331b.scala b/test/files/run/t7331b.scala
new file mode 100644
index 0000000000..052656d11b
--- /dev/null
+++ b/test/files/run/t7331b.scala
@@ -0,0 +1,11 @@
+import scala.reflect.runtime.universe._
+import scala.reflect.runtime.{currentMirror => cm}
+import scala.tools.reflect.{ToolBox, ToolBoxError}
+
+object Test extends App {
+ val tb = cm.mkToolBox()
+ try tb.parse("f(x")
+ catch {
+ case ToolBoxError(msg, _) => println(msg)
+ }
+} \ No newline at end of file