Skip to content

[5.1] Support unavailable and obsoleted attributes on extensions #26009

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

Merged
merged 3 commits into from
Jul 17, 2019

Conversation

xymus
Copy link
Contributor

@xymus xymus commented Jul 8, 2019

Cherry-pick of #24997 for Swift 5.1.

xymus added 3 commits July 8, 2019 15:32
Members of an extension inherit the availability of the extension.
This was previously supported for introduced and deprecated, but not
unavailable and obsoleted.

rdar://problem/50949936
This change permits the use of unavailable types in unavailable signatures.
It affects only usage of `available(*, unavailable)`.

This fixes a compilation error in swift-corelibs-foundation/Foundation/
URLSession/URLSessionConfiguration.swift where an unavailable property
was typed by an unavailable type.
@xymus
Copy link
Contributor Author

xymus commented Jul 8, 2019

@swift-ci please test

@xymus xymus merged commit 232c753 into swiftlang:swift-5.1-branch Jul 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant