cmd/compile: better error message when attempting to use a shadowed type name #9655
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
The compiler will emit a confusing error when a type is shadowed within a function. It should somehow try and make clear that the inner type shadows the global type.
Link to play.golang.org example
Link to golang-nuts thread
See also #8853.
Edit: I incorrectly referred to "shadowing" as "aliasing".
The text was updated successfully, but these errors were encountered: