cmd/compile: range over func internal compiler error with named bool type in yield #71131
Labels
Bug
Issues describing a bug in the Go implementation.
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Go version
go version go1.23.4 darwin/amd64
Output of
go env
in your module/workspace:What did you do?
Ran this playground code.
What did you see happen?
./prog.go:7:2: internal compiler error: func() (#r bool) is not assignable to func() main.Bool
What did you expect to see?
Either no error, or an error that isn't an internal compiler error.
The text was updated successfully, but these errors were encountered: