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
Shadowing a type alias declared by an inherited protocol breaks explicit type qualification.
protocolOne {
typealiasNominal = StringtypealiasGeneric<T> = Array<T>
}
classTwo: One {
typealiasNominal = InttypealiasGeneric<T> = Dictionary<String, T>
funcmethod(nominal: Nominal) {}
funcmethod(oneNominal: One.Nominal) {}
funcmethod(twoNominal: Two.Nominal) {} // Ambiguous type name 'Nominal' in 'Two'funcmethod(generic: Generic<Bool>) {}
funcmethod(oneGeneric: One.Generic<Bool>) {} // Type alias 'Generic' can only be used with a concrete type or generic parameter basefuncmethod(twoGeneric: Two.Generic<Bool>) {} // Ambiguous type name 'Generic' in 'Two'
}
It feels like references to `Nominal` vs `Two.Nominal` should be treated the same within `Two`.
The text was updated successfully, but these errors were encountered:
Environment
Additional Detail from JIRA
md5: 91dc18a2dde2fd5052dc515d364a25f8
Issue Description:
Shadowing a type alias declared by an inherited protocol breaks explicit type qualification.
It feels like references to `Nominal` vs `Two.Nominal` should be treated the same within `Two`.
The text was updated successfully, but these errors were encountered: