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
Instead of crashing, I'd propose a message like, "I'll bring the popcorn!"
apm@mara:~$ skala
Welcome to Scala version 2.11.0-20130422-021742-1d54f26b9a (OpenJDK64-BitServerVM, Java1.7.0_21).
Type in expressions to have them evaluated.
Type:help for more information.
scala>vali=3
i:Int=3
scala>valj=3
j:Int=3
scala> (for (x =Option(i); if x == j) yield42) toList
<console>:1:error: '<-' expected but '=' found.
(for (x =Option(i); if x == j) yield42) toList
^
<console>:1:error: illegal start of simple expression
(for (x =Option(i); if x == j) yield42) toList
^
java.lang.UnsupportedOperationException:Position.point on classscala.reflect.internal.util.NoPosition$
at scala.reflect.internal.util.Position.point(Position.scala:115)
at scala.reflect.internal.util.Position.startOrPoint(Position.scala:112)
at scala.tools.nsc.ast.parser.Parsers$Parser.postfixExpr(Parsers.scala:1444)
at scala.tools.nsc.ast.parser.Parsers$Parser.parseOther$1(Parsers.scala:1339)
at scala.tools.nsc.ast.parser.Parsers$Parser.expr0(Parsers.scala:1393)
at scala.tools.nsc.ast.parser.Parsers$Parser.expr(Parsers.scala:1235)
Also in 2.10.1. Is NoPosition the new NoSymbol has no owner?
The text was updated successfully, but these errors were encountered:
Oops, I did it again. Butter fingers!
Instead of crashing, I'd propose a message like, "I'll bring the popcorn!"
Also in 2.10.1. Is NoPosition the new NoSymbol has no owner?
The text was updated successfully, but these errors were encountered: