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
[error] -- [E000] SyntaxError:/home/tgodzik/Documents/workspaces/scala3-example-project/src/main/scala/Main.scala:9:2
[error] 9|catch
[error] |^^^^^
[error] |Thecatch block does not contain a valid expression, try
[error] | adding a case like -casee: Exception=> to the block
Compiler version
3.1.0
Minimized code
Output
Expectation
Test compiles, according to https://docs.scala-lang.org/scala3/reference/syntax.html#expressions
‘catch’ (Expr | ExprCaseClause)
-> catch should be possible to follow by an expression, newline should not cause any issues.Is this an expected behaviour?
The text was updated successfully, but these errors were encountered: