Skip to content

[Sema] Consider inherited platform unavailability to silence diagnostics #34087

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 1 commit into from
Oct 4, 2020

Conversation

xymus
Copy link
Contributor

@xymus xymus commented Sep 25, 2020

Unavailability inherited by a platform wasn't taken into account when reporting the use of unavailable types imported from Objective-C in unavailable code. This likely forced uses to write an explicit @available(macCatalyst, unavailable) even when a @available(iOS, unavailable) was present.

rdar://68597591

@xymus
Copy link
Contributor Author

xymus commented Sep 25, 2020

@swift-ci Please smoke test

@xymus
Copy link
Contributor Author

xymus commented Sep 25, 2020

@swift-ci Please smoke test Linux platform

@xymus
Copy link
Contributor Author

xymus commented Sep 26, 2020

@swift-ci Please test Linux platform

@xymus
Copy link
Contributor Author

xymus commented Oct 1, 2020

@swift-ci Please smoke test

@xymus
Copy link
Contributor Author

xymus commented Oct 2, 2020

@swift-ci Please smoke test Linux platform

@xymus
Copy link
Contributor Author

xymus commented Oct 2, 2020

@swift-ci Please test Windows platform

1 similar comment
@xymus
Copy link
Contributor Author

xymus commented Oct 4, 2020

@swift-ci Please test Windows platform

@xymus
Copy link
Contributor Author

xymus commented Oct 4, 2020

@swift-ci Please smoke test Linux platform

@xymus xymus merged commit 6c72664 into swiftlang:main Oct 4, 2020
@xymus xymus deleted the inherit-unavailability branch October 4, 2020 22:52
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