-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Allow final on dynamic members #23790
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
Allow final on dynamic members #23790
Conversation
Dynamic is about dynamically replacing a method implementiation not overriding. rdar://49535048
@swift-ci Please test |
Hmm, I missed a digit in the radar number: rdar://49535048 |
Build failed |
@swift-ci Please test os x platform |
Build failed |
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.
Why is this gated on -swift-version 5?
Used to be an error. |
@swift-ci please test macOS |
We don’t require a swift version check when loosening existing restrictions. Also we already shipped swift 5 and it wouldn’t make sense to introduce new behavior changes in -swift-version 5 anyway. I would just make this unconditional and remove the diagnostic. |
@swift-ci Please test |
Build failed |
Build failed |
Thank you for revising, new version looks good. |
Dynamic is about dynamically replacing a method implementiation not
overriding.
rdar://49535048