Skip to content

Support unavailable and obsoleted attributes on extensions #24997

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
May 29, 2019

Conversation

xymus
Copy link
Contributor

@xymus xymus commented May 22, 2019

Members of an extension should inherit the availability of the extension. This was previously supported for introduced and deprecated, but not unavailable and obsoleted.

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
@xymus
Copy link
Contributor Author

xymus commented May 22, 2019

@swift-ci Please smoke test

@xymus
Copy link
Contributor Author

xymus commented May 22, 2019

@swift-ci Please test source compatibility

@slavapestov
Copy link
Contributor

This is worth a CHANGELOG entry.

@xymus
Copy link
Contributor Author

xymus commented May 23, 2019

@swift-ci Please smoke test

@xymus
Copy link
Contributor Author

xymus commented May 23, 2019

@swift-ci Please test source compatibility

xymus added 2 commits May 24, 2019 10:22
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 xymus force-pushed the extension-availability branch from 869d4b6 to 9b59ec5 Compare May 24, 2019 17:27
@xymus
Copy link
Contributor Author

xymus commented May 24, 2019

@swift-ci Please smoke test

@xymus
Copy link
Contributor Author

xymus commented May 28, 2019

@swift-ci Please test source compatibility

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.

2 participants