cmd/compile: Go 1.20 recognizes clear
built-in and panics
#61326
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
clear
built-in and panics
#61326
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: