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
The Uses map entry for struct { a } ought to be the Alias object for type alias a, not its original type.
However, the logic in (*Checker).structType calls recordUse on the TypeName derived from the computed type of the field, rather than the object (type or type alias) with which the field is declared.
In at least some cases, such as a simple ident, the recordUse call made by the add function within structType is redundant, since check.typeExpr(f.Type) already calls recordUse.
The text was updated successfully, but these errors were encountered:
The Uses map entry for
struct { a }
ought to be the Alias object for type alias a, not its original type.However, the logic in
(*Checker).structType
calls recordUse on the TypeName derived from the computed type of the field, rather than the object (type or type alias) with which the field is declared.In at least some cases, such as a simple ident, the recordUse call made by the add function within structType is redundant, since check.typeExpr(f.Type) already calls recordUse.
The text was updated successfully, but these errors were encountered: