Closed
Description
Input:
package bug
type I interface {
int
}
func New() I {
return struct{}{}
}
Output:
dominikh-pc /tmp $ go build foo.go
# command-line-arguments
./foo.go:4: interface contains embedded non-interface int
./foo.go:8: internal compiler error: getinarg: not a func int
Expected output:
No internal compiler error.
Version:
go version devel +5ee5528 Thu May 28 12:04:35 2015 +0000 linux/amd64
Also happens with Go 1.4.