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
scala>valtb= m.mkToolBox()
tb: scala.tools.reflect.ToolBox[reflect.runtime.universe.type] =
scala.tools.reflect.ToolBoxFactory$ToolBoxImpl@5849e989
scala>valexpr= tb.parseExpr("1 to 3 map (_+1)")
expr: tb.u.Tree=1.to(3).map(((x$1) => x$1.$plus(1)))
scala> tb.typeCheck(expr)
scala.tools.reflect.ToolBoxError: reflective typecheck has failed: value
to is not a member of Int at
scala.tools.reflect.ToolBoxFactory$ToolBoxImpl$ToolBoxGlobal$$anonfun$typeCheckExpr$1.apply(ToolBoxFactory.scala:145)
<more stack-trace>
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: