1
1
mirror of https://github.com/github/semantic.git synced 2024-12-20 21:31:48 +03:00
semantic/test/fixtures/go/label-statements.B.go

12 lines
230 B
Go
Raw Normal View History

2017-02-23 21:06:49 +03:00
package main
func main() {
2017-11-21 07:23:10 +03:00
M: ; // ';' terminates empty statement => M does not apply to for loop
M1: { // M1 labels block => M1 does not apply to for loop
for i := 0; i < 10; i++ {
println(i);
break M1; // comment
}
2017-02-23 21:06:49 +03:00
}
}