1
1
mirror of https://github.com/github/semantic.git synced 2024-12-27 17:05:33 +03:00
semantic/test/fixtures/go/corpus/label-statements.B.go

15 lines
249 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
}
2017-11-21 21:33:25 +03:00
{
replacement:
}
2017-02-23 21:06:49 +03:00
}