Skip to content

Suggest narrowing an existing availability context, when feasible. #6924

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

graydon
Copy link
Contributor

@graydon graydon commented Jan 20, 2017

Targeted fix for the case of a user having an existing type refinement context
(via #available or @available guard) that doesn't restrict to the version range
required by the callee: provides a specific fixit to adjust the existing guard to
match requirement, rather than suggesting introducing a new one.

rdar://problem/28815071

@graydon
Copy link
Contributor Author

graydon commented Jan 20, 2017

@swift-ci please smoke test and merge

@slavapestov
Copy link
Contributor

Nitpick: typo in PR title, "exising"

@graydon graydon changed the title Suggest narrowing an exising availability context, when feasible. Suggest narrowing an existing availability context, when feasible. Jan 20, 2017
@graydon
Copy link
Contributor Author

graydon commented Jan 20, 2017

@swift-ci please smoke test and merge

1 similar comment
@graydon
Copy link
Contributor Author

graydon commented Jan 20, 2017

@swift-ci please smoke test and merge

@swift-ci swift-ci merged commit 4153928 into swiftlang:master Jan 20, 2017
@graydon graydon deleted the rdar-28815071-fixit-to-narrow-availability-check branch September 13, 2017 16:42
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.

4 participants