-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Parse/Sema] Diagnose invalid attributes for ParamDecl and GenericTypeParamDecl #17852
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
Previously, invalid attributes were silently accepted and ignored. https://bugs.swift.org/browse/SR-8202
Previously, invalid attributes were silently accepted and ignored. https://bugs.swift.org/browse/SR-8202
@DougGregor @jrose-apple Could you take a look? @DougGregor class B<@available(*, unavailable, renamed: "U") T> {}
extension B where T: Equatable { } This can be compiled, but I don't think it should be. |
@swift-ci Please smoke test |
@swift-ci Please smoke test Linux |
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.
Doug's out on vacation. I agree that generic parameters should not support @available
, though. They really have to be as available as the base type, at least today.
We will want to do a source compat run before merging this.
@swift-ci Please Test Source Compatibility |
Linux issues have been fixed. @swift-ci Please smoke test Linux |
@swift-ci Please test source compatibility |
@swift-ci Please smoke test Linux |
@swift-ci Please test source compatibility |
holding off until source-combat-suite become healthy. |
@swift-ci Please test source compatibility |
Previously, invalid attributes were silently accepted and ignored.
https://bugs.swift.org/browse/SR-8202