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
If I try to put the expression in an object, it fails elsewhere:
scala>objectTest:| x.fold:|22| .apply: n =>--Error:----------------------------------------------------------------------4| .apply: n =>| ^^
| end of statement expected but '=>' found
Expectation is again that it should let me continue after the =>.
The text was updated successfully, but these errors were encountered:
odersky
changed the title
REPL does not consider fewerBraces when deciding when input ends
REPL does not consider fewerBraces for deciding when input ends
Jul 21, 2022
Compiler version
Scala 3.2.0-RC2
Minimized example
Output
The REPL returns a result after the
:
Expectation
It should accept an argument on the next line.
Another Example:
If I try to put the expression in an object, it fails elsewhere:
Expectation is again that it should let me continue after the
=>
.The text was updated successfully, but these errors were encountered: