-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Unrevert "[Sema] Setter has incorrect mutating-ness inside class-constrained protocol extension" #27057
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
Conversation
…s-constrained protocol extension"" This reverts commit edb153a.
…otocol requirement Do not offer a mutating fix-it if we have a mutating protocol requirement and we're assigning to it from an implicitly nonmutating setter inside a protocol extension
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Thanks for sticking with this, by the way. Sorry for only noticing one or two things each time—I keep thinking "oh, this is an unrevert and it was basically ready to go in last time so I don't really need to look at it closely". |
…InContext()' instead
Running tests while I wait for approval: @swift-ci please smoke test |
@swift-ci please test source compatibility |
… a type context before proceeding
@swift-ci please smoke test |
@swift-ci please test source compatibility |
Alright, all tests have passed |
Is this good to merge now? Just need an approval before I do that (and fix the indentation). |
…the responsibility to the caller
…implifed by isInstanceMember()
Thanks again for sticking with it! |
@swift-ci please test |
@swift-ci please test source compatibility |
This un-reverts #26695. The Core Team accepts this as a bug fix.
Resolves SR-11298.