diff options
author | Den Shabalin <den.shabalin@gmail.com> | 2013-09-20 12:44:42 +0200 |
---|---|---|
committer | Den Shabalin <den.shabalin@gmail.com> | 2013-09-20 12:50:54 +0200 |
commit | 48d1d05421cb28a635c077b0fb63a0e48d3e0c41 (patch) | |
tree | 51eccbdf0f1a4d7978daa5164eef81f358dcf435 | |
parent | 884e1ce762d98b29594146d37b85384581d9ba96 (diff) | |
download | scala-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.
-rw-r--r-- | test/files/run/t6719.check | 1 | ||||
-rw-r--r-- | test/files/run/t6719.scala | 8 |
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 |