1
Fork 0

Recover more expressions in patterns

This commit is contained in:
Lieselotte 2024-07-04 14:10:17 +02:00
parent 7fc70f870a
commit c2047219b5
No known key found for this signature in database
GPG key ID: 68A9A951C7E1F283
20 changed files with 631 additions and 280 deletions

View file

@ -803,15 +803,9 @@ parse_unexpected_expr_in_pat =
expected {$is_bound ->
[true] a pattern range bound
*[false] a pattern
}, found {$is_method_call ->
[true] a method call
*[false] an expression
}
}, found an expression
.label = {$is_method_call ->
[true] method calls
*[false] arbitrary expressions
} are not allowed in patterns
.label = arbitrary expressions are not allowed in patterns
parse_unexpected_if_with_if = unexpected `if` in the condition expression
.suggestion = remove the `if`