cmd/compile: duplicate index error should distinguish arrays and slices #35291
Labels
FrozenDueToAge
help wanted
Suggested
Issues that may be good for new contributors looking for work to do.
Milestone
https://play.golang.org/p/cncTK4uwake
Compile. Result:
But the duplicate index is in a slice literal, not an array literal.
Probably an artifact of how cmd/compile used to use TARRAY to represent both arrays and slices.
Low priority, but probably also an easy fix. Might be a good first issue for someone interested in the compilerr.
The text was updated successfully, but these errors were encountered: