go/types: incorrect error about missing return (original) (raw)
gc successfully compiles the following program:
package a func f() int { for {}; ; }
while gotype says:
go.go:5: missing return at end of function
go version devel +9b04852 Sat Jul 11 00:08:50 2015 +0000 linux/amd64