Recover more expressions in patterns
This commit is contained in:
parent
7fc70f870a
commit
c2047219b5
20 changed files with 631 additions and 280 deletions
|
@ -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`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue