You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does this issue reproduce with the latest release?
Yes
What did you do?
go run the following file:
package main
func main() {
clear(([]int)(nil))
}
What did you expect to see?
An error indicating that clear isn't defined, or that it needs Go 1.21
What did you see instead?
./foo.go:3:6: internal compiler error: panic: interface conversion: interface is nil, not ir.Node
When building a package in a module, instead of specifying a file, Go correctly reports that clear needs Go 1.21 if the Go version in go.mod is set to 1.20. However, if go.mod specifies 1.21, the same panic occurs.
The text was updated successfully, but these errors were encountered:
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What did you do?
go run
the following file:What did you expect to see?
An error indicating that
clear
isn't defined, or that it needs Go 1.21What did you see instead?
When building a package in a module, instead of specifying a file, Go correctly reports that
clear
needs Go 1.21 if the Go version in go.mod is set to 1.20. However, if go.mod specifies 1.21, the same panic occurs.The text was updated successfully, but these errors were encountered: