Go version
Go 1.22 regression (1.21 works)
Output of go env in your module/workspace:
Not relevant, happens on Go playground: https://go.dev/play/p/mJULW_pJBIf
What did you do?
Compile the following program:
package main
func main() {}
func fail() {
return
something := false
loop:
for {
if something {
break loop
}
}
}
What did you see happen?
Compiler assert
What did you expect to see?
No crash
Go version
Go 1.22 regression (1.21 works)
Output of
go envin your module/workspace:Not relevant, happens on Go playground: https://go.dev/play/p/mJULW_pJBIf
What did you do?
Compile the following program:
What did you see happen?
Compiler assert
What did you expect to see?
No crash