summaryrefslogtreecommitdiff
path: root/test/files/run
diff options
context:
space:
mode:
authorDen Shabalin <den.shabalin@gmail.com>2013-09-20 12:44:42 +0200
committerDen Shabalin <den.shabalin@gmail.com>2013-09-20 12:50:54 +0200
commit48d1d05421cb28a635c077b0fb63a0e48d3e0c41 (patch)
tree51eccbdf0f1a4d7978daa5164eef81f358dcf435 /test/files/run
parent884e1ce762d98b29594146d37b85384581d9ba96 (diff)
downloadscala-48d1d05421cb28a635c077b0fb63a0e48d3e0c41.tar.gz
scala-48d1d05421cb28a635c077b0fb63a0e48d3e0c41.tar.bz2
scala-48d1d05421cb28a635c077b0fb63a0e48d3e0c41.zip
add test case for SI-6719
The bug itself was fixed earlier in 95fe19545d60ae9aa79d2c8d5665c7f3b0cbdb1a It was caused by improper wrapping of blocks in the toolbox's parse method.
Diffstat (limited to 'test/files/run')
-rw-r--r--test/files/run/t6719.check1
-rw-r--r--test/files/run/t6719.scala8
2 files changed, 9 insertions, 0 deletions
diff --git a/test/files/run/t6719.check b/test/files/run/t6719.check
new file mode 100644
index 0000000000..6a452c185a
--- /dev/null
+++ b/test/files/run/t6719.check
@@ -0,0 +1 @@
+()
diff --git a/test/files/run/t6719.scala b/test/files/run/t6719.scala
new file mode 100644
index 0000000000..847929a95d
--- /dev/null
+++ b/test/files/run/t6719.scala
@@ -0,0 +1,8 @@
+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()
+ val tree = tb.parse("(); val res = 0")
+ println(tb.eval(tree))
+} \ No newline at end of file