-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Sema: Fix order dependency in @objc inference from witnessed protocol requirement [5.1] #24256
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: Fix order dependency in @objc inference from witnessed protocol requirement [5.1] #24256
Conversation
… requirement If we haven't validated the declaration yet, the 'witnesses @objc requirement' check would immediately fail. Move the validateDecl() call to matchWitness() to fix this. Fixes <rdar://problem/49482328>, <https://bugs.swift.org/browse/SR-10257>.
@swift-ci Please test |
Build failed |
Build failed |
@shahmishal Looks like there's an issue with update-checkout on the swift-5.1-branch? |
@swift-ci Please test |
Build failed |
@swift-ci Please test macOS |
It should be resolved now. |
When will swift 5.1 been release?It is really a big problem. |
I agree, It was breaking my CollectionViews and who knows what else, which I believe is the main problem, it could be breaking anything silently |
If we haven't validated the declaration yet, the 'witnesses @objc
requirement' check would immediately fail. Move the validateDecl()
call to matchWitness() to fix this.
Fixes rdar://problem/49482328, fixes #52657.