Skip to content

[Type checker] Eliminate generation of useless constraints NFC. #5261

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

Conversation

DougGregor
Copy link
Member

There's no point in adding the constraints known on an associated type
to the constraint system, because they're implied by the protocol
constraint itself.

There's no point in adding the constraints known on an associated type
to the constraint system, because they're implied by the protocol
constraint itself.
@DougGregor
Copy link
Member Author

@swift-ci please smoke test and merge

With the previous type-checker change, we end up with some vacuous
infix operator completions, where the right-hand side and result type
are *both* type variables. Suppress these; they aren't useful to the
developer.
@DougGregor
Copy link
Member Author

@swift-ci please smoke test and merge

@DougGregor DougGregor merged commit 6ce4be9 into swiftlang:master Oct 13, 2016
@DougGregor DougGregor deleted the type-checker-extra-constraints branch October 13, 2016 20:40
MaxDesiatov pushed a commit that referenced this pull request Sep 7, 2023
[pull] swiftwasm from main
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