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
This is similar to SuppressedAssociatedTypes, but infers
default requirements when primary associated types of
protocols are suppressed. This defaulting for the primary
associated types happens in extensions of the protocol,
along with generic parameters, whenever a source-written
requirement states a conformance requirement for the protocol.
Thus, the current scheme for this defaulting is a simplistic,
driven by source-written requirements, rather than facts
that are inferred while building generic signatures.
Defaults are not expanded for infinitely many associated types.
Other changes include...
Sema: adjust protocol extension signature hack
With SuppressedAssociatedTypesWithDefaults,
we can have associated types that are missing
invertible conformance requirements, so we need
to try re-building the signature for the extension
of the protocol. Otherwise, we won't infer the new
default(s) for those associated types.
This previous hack was only trying to shortcut
the rebuilding if it saw Self is lacking a conformance
requirement. Now it'll check if any inverses were written
in source for that protocol.
0 commit comments