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