1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 14:21:31 +03:00
semantic/test/fixtures/go/corpus/label-statements.A.go
2018-04-18 13:33:17 -07: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:
}
}