From c98aa6f9b149550243b68274e24a6f3174b7f85b Mon Sep 17 00:00:00 2001 From: Eugene Burmako Date: Fri, 30 May 2014 13:00:38 +0200 Subject: SI-8637 fixes toolbox phase corruption It turns out, Toolbox.typecheck hasn't been properly re-initializing its state between requests. In particular, globalPhase was left untouched, which made the compiler think that it's past typer, and that in turn disabled implicits. This commit applies a symptomatic fix to this problem. --- test/files/run/t8637.check | 0 test/files/run/t8637.scala | 9 +++++++++ 2 files changed, 9 insertions(+) create mode 100644 test/files/run/t8637.check create mode 100644 test/files/run/t8637.scala (limited to 'test/files') diff --git a/test/files/run/t8637.check b/test/files/run/t8637.check new file mode 100644 index 0000000000..e69de29bb2 diff --git a/test/files/run/t8637.scala b/test/files/run/t8637.scala new file mode 100644 index 0000000000..99c8d4c413 --- /dev/null +++ b/test/files/run/t8637.scala @@ -0,0 +1,9 @@ +import scala.reflect.runtime.universe._ +import scala.reflect.runtime.currentMirror +import scala.tools.reflect.ToolBox + +object Test extends App { + val tb = currentMirror.mkToolBox() + tb.compile(q"true > true") + tb.typecheck(q"true > true") +} \ No newline at end of file -- cgit v1.2.3