From 48d1d05421cb28a635c077b0fb63a0e48d3e0c41 Mon Sep 17 00:00:00 2001 From: Den Shabalin Date: Fri, 20 Sep 2013 12:44:42 +0200 Subject: 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. --- test/files/run/t6719.check | 1 + test/files/run/t6719.scala | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 test/files/run/t6719.check create mode 100644 test/files/run/t6719.scala (limited to 'test/files/run') 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 -- cgit v1.2.3