1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 22:31:36 +03:00
semantic/test/fixtures/go/label-statements.A.go
2017-11-21 10:33:25 -08:00

15 lines
244 B
Go

package main
func main() {
L: ; // ';' terminates empty statement => L does not apply to for loop
L1: { // L1 labels block => L1 does not apply to for loop
for i := 0; i < 10; i++ {
println(i);
break L1; // comment
}
}
{
insert:
}
}