Go version
go 1.26.1 / devel at 918644a
Output of go env in your module/workspace:
What did you do?
package main
func F() {
for range (func(func(int, ...string) bool))(nil) {
}
}
func main() {}
What did you see happen?
./main.go:4:2: internal compiler error: func(#p1 int, #p2 []string) (#r bool) is not assignable to func(int, ...string) bool
Please file a bug report including a short program that triggers the error.
https://go.dev/issue/new
What did you expect to see?
No ICE.
Go version
go 1.26.1 / devel at 918644a
Output of
go envin your module/workspace:What did you do?
What did you see happen?
What did you expect to see?
No ICE.