Skip to content

Diagnose unavailable getters and setters #15864

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 2 commits into from
Apr 12, 2018

Conversation

jrose-apple
Copy link
Contributor

This handles the case where one accessor is unavailable but not the other. This is rarer than deprecation (handled in #15102), but could still happen.

Finishes rdar://problem/18633725 / SR-7201.

This is a "no functionality change" commit because this isn't
/invoked/ on accessors yet; that's the next commit. I wanted to
separate out the mechanical part, though.
This handles the case where one accessor is /unavailable/ but not the
other. This is rarer than deprecation (handled in b0e12f4), but could
still happen.

Finishes rdar://problem/18633725 / SR-7201.
@jrose-apple
Copy link
Contributor Author

@swift-ci Please test

@jrose-apple
Copy link
Contributor Author

@swift-ci Please test source compatibility

Copy link
Contributor

@devincoughlin devincoughlin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. One question inline.

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -verify -I %S/Inputs/custom-modules %s
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -verify -I %S/Inputs/custom-modules %s -verify-ignore-unknown
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where do the unknown locations come from? Is that for notes on the imported accessors?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep. I'm not super happy about that but it seems unrelated to the purpose of this PR.

@jrose-apple jrose-apple merged commit ab9f62d into swiftlang:master Apr 12, 2018
@jrose-apple jrose-apple deleted the get-set-stop branch April 12, 2018 16: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.

2 participants