Specify that break
cannot be used outside of loop *or* labeled block
This commit is contained in:
parent
09508489ef
commit
2f882c014f
14 changed files with 37 additions and 30 deletions
|
@ -451,8 +451,14 @@ passes_break_inside_async_block =
|
|||
.async_block_label = enclosing `async` block
|
||||
|
||||
passes_outside_loop =
|
||||
`{$name}` outside of a loop
|
||||
.label = cannot `{$name}` outside of a loop
|
||||
`{$name}` outside of a loop{$is_break ->
|
||||
[true] {" or labeled block"}
|
||||
*[false] {""}
|
||||
}
|
||||
.label = cannot `{$name}` outside of a loop{$is_break ->
|
||||
[true] {" or labeled block"}
|
||||
*[false] {""}
|
||||
}
|
||||
|
||||
passes_unlabeled_in_labeled_block =
|
||||
unlabeled `{$cf_type}` inside of a labeled block
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue