summaryrefslogtreecommitdiff
path: root/test/files/run/t5942.scala
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2012-09-18 00:06:00 +0200
committerEugene Burmako <xeno.by@gmail.com>2012-09-18 00:06:26 +0200
commit5e6d069b0078851dffb163b2a2db503eac31e54f (patch)
treeb0e061d9bc324c1aaba2571aa7735108b2887bfa /test/files/run/t5942.scala
parent66603a2c003852d39faec20a9763fb0e25049cf4 (diff)
downloadscala-5e6d069b0078851dffb163b2a2db503eac31e54f.tar.gz
scala-5e6d069b0078851dffb163b2a2db503eac31e54f.tar.bz2
scala-5e6d069b0078851dffb163b2a2db503eac31e54f.zip
SI-5942 toolboxes now reset front ends
FrontEnd => Reporter proxy now correctly redirects flush and reset back to the underlying front end.
Diffstat (limited to 'test/files/run/t5942.scala')
-rw-r--r--test/files/run/t5942.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/run/t5942.scala b/test/files/run/t5942.scala
new file mode 100644
index 0000000000..44a8be93f6
--- /dev/null
+++ b/test/files/run/t5942.scala
@@ -0,0 +1,10 @@
+import scala.reflect.runtime.universe._
+import scala.reflect.runtime.{currentMirror => cm}
+import scala.tools.reflect._
+
+object Test extends App {
+ val tb = cm.mkToolBox()
+ tb.parse("def x = {}")
+ try { tb.parse("def x = {") } catch { case _ => }
+ tb.parse("def x = {}")
+}