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>valx=iftruethen421|valx=iftruethen42|^^|A pure expression does nothing in statement position; you may be omitting necessary parentheses
scala>valx=val1|valx=val|^^^| expression expected but valfound
Expectation
The first message above should include warning and the the second should include error. It is conceptually important to understand if the code has run or not, esp. for learners but also for professionals - I don't know all messages by hart if they are warnings or errors. Now it all looks the same in the Scala 3 REPL.
This is a regression from the Scala 2 REPL, in which you can always tell if a message is an error or a warning.