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
[Sema] Emit a diagnostic when extending a protocol with a redundant requirement #20503
Conversation
Moved from TypeCheckRequests to TypeCheckGeneric
@rudkx Does this change look good to you? |
@swift-ci please smoke test |
I think I have fixed now, running |
…mitting a diagnostic, update tests
@swift-ci please smoke test |
@xedin Think this is good to merge? |
Co-Authored-By: theblixguy <suyashsrijan@outlook.com>
@swift-ci please test |
Build failed |
Build failed |
The test was failing because A has already been declared as a typealias.
@harlanhaskins can you run the tests again? Seems like |
Ah! My apologies. @swift-ci please test |
Build failed |
Build failed |
All tests have passed 🎉 |
Thanks, @theblixguy!! |
This PR adds a change to emit a warning diagnostic when extending a protocol with a redundant requirement.
Resolves SR-9218.