1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 10:15:55 +03:00
semantic/test/fixtures/go/label-statements.B.go
2017-11-21 10:33:25 -08:00

15 lines
249 B
Go

package main
func main() {
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
}
}
{
replacement:
}
}