Skip to content

GSB: Perform conditional requirement inference in AbstractGenericSignatureRequest too #39983

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 30, 2021

Conversation

slavapestov
Copy link
Contributor

No description provided.

We used to assert if a generic requirement of a signature could
be proved from the signature with the requirement removed.

However, in some rare cases minimization can *add* new requirements
as well as remove them.

This is going to come up even more with the RequirementMachine,
where for example the following signature is accepted:

    protocol Q { associatedtype A : P }
    protocol P { associatedtype B }
    <T where T.A : Q, T.A.B == T>

and minimized as follows:

    <T where T : P, T.A : Q, T.A.B == T>
…atureRequest too

There's no way to trigger this from a test right now; it's
for some changes @jckarter is working on.
@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

@slavapestov slavapestov merged commit 06fbca6 into swiftlang:main Oct 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant