cmd/compile: confusing error message when using an indexing expression as an array size #60812
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
generics
Issue is related to generics
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What did you do?
What did you expect to see?
syntax error: array length must be a constant
or
syntax error: type constraint is incomplete
or
syntax error: either type constraint is incomplete or array length is not a constant
What did you see instead?
syntax error: type parameters must be named
The text was updated successfully, but these errors were encountered: