You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ToolBox potentially has a bug in the implementation of parseExpr. A call with a string containing a syntax error, produces a ToolBoxError. A subsequent call with a string containing correct code results in the same error:
scala>valtb= m.mkToolBox()
tb: scala.tools.reflect.ToolBox[reflect.runtime.universe.type] = scala.tools.reflect.ToolBoxFactory$ToolBoxImpl@1f521f12
scala> tb.parseExpr("def x = {}") // works fine
res34: tb.u.Tree=defx= ()
scala> tb.parseExpr("def x = {")
scala.tools.reflect.ToolBoxError: reflective compilation has failed:
'}' expected but eof found.
<strack-trace>
scala> tb.parseExpr("def x = {}") // doesn't work any more
scala.tools.reflect.ToolBoxError: reflective compilation has failed:
'}' expected but eof found.
<strack-trace>
The text was updated successfully, but these errors were encountered:
ToolBox potentially has a bug in the implementation of
parseExpr
. A call with a string containing a syntax error, produces a ToolBoxError. A subsequent call with a string containing correct code results in the same error:The text was updated successfully, but these errors were encountered: