Debian Codegraph @

gopls/internal/test/marker/testdata/definition/branch_issue73797_go124.txt

raw
1 This test checks the case of a definition operation on a "continue" with an invalid label.
2 In gotip, the typechecker no longer associates the continue statement with its invalid label,
3 so this test case should only be run for go1.24 or earlier.
4 See the related change in go/types: https://go-review.git.corp.google.com/c/go/+/638257
5
6 -- flags --
7 -max_go=go1.24
8 -ignore_extra_diags
9
10 -- go.mod --
11 module mod.com
12
13 go 1.18
14
15 -- a/a.go --
16 package a
17
18 func InvalidLabel() {
19 label:
20 for i := 0; i < 10; i++ {
21 }
22 for i := 0; i < 10; i++ {
23 continue label //@def("continue")
24 }
25 }