Skip to content

[Importer] Preserve argument labels even for accessors. #7104

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

Conversation

jrose-apple
Copy link
Contributor

  • Explanation: The AST verifier is unhappy when an accessor's imported name gets selector-split but its parameters don't have that recorded. Although we're not using this for anything today, it seems best to keep the two in sync. (This is a partial cherry-pick of [Importer] Preserve argument labels even for accessors. #7007, without changes to how the verifier works.)
  • Scope: Affects imported properties with custom setter names that would be selector-split.
  • Issue: rdar://problem/29889051
  • Reviewed by: @DougGregor
  • Risk: Low. We're not using this information for anything, it just affects the verifier.
  • Testing: Added compiler regression tests, checked that the original project gets past this failure.

The AST verifier is unhappy when an accessor's imported name gets
selector-split but its parameters don't have that recorded. Although
we're not using this for anything today, it seems best to keep the
two in sync.

rdar://problem/29889051
(cherry picked from commit fdbc84f)
@jrose-apple jrose-apple added this to the Swift 3.1 milestone Jan 27, 2017
@jrose-apple
Copy link
Contributor Author

@swift-ci Please test

@tkremenek tkremenek merged commit afd00af into swiftlang:swift-3.1-branch Jan 27, 2017
@jrose-apple jrose-apple deleted the 3.1-accessor-argument-labels branch January 27, 2017 21:11
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