Skip to content

Commit f45c645

Browse files
Update standard/statements.md
Co-authored-by: Nigel-Ecma <[email protected]>
1 parent 114272e commit f45c645

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

standard/statements.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,11 @@ static void M()
406406
}
407407
```
408408

409-
A `goto` cannot jump to a location before a `using` declaration within the same block.
409+
When jumping to a label in a statement list which contains *local_variable_declaration*s involving `using`, there must not be any such declaration between the `goto` statement and the label.```
410+
411+
Apart from wordsmithing this needs x-ref to goto, and goto probably needs this restriction listed in its description as well.
412+
413+
Also surely this is an echo of a similar statement for `using (…) {…}`, so is it needed here at all given the equivalency defined above – this is just a shorthand.
410414

411415
A *local_variable_declaration* with `using` shall not appear directly inside a `case` label, but, instead, may be within a block inside a `case` label.
412416

0 commit comments

Comments
 (0)