Skip to content

[Name lookup] Fix an issue with lazy named member lookup. #14498

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

DougGregor
Copy link
Member

  • Explanation: Lazy name member lookup could miss some members declared in a Swift extension of an Objective-C class, incorrectly rejecting well-formed code.

  • Scope of Issue: We've only seen one instance of this in the wild, but name-lookup problems like this can manifest commonly.

  • Origination: Lazy name member lookup introduced this issue.

  • Risk: The fix here is very targeted and mirrors a fix we did back in December in a related part of the code-base, so the risk seems low.

  • Fixes: SR-6834 / rdar://problem/36851018

  • Reviewed By: @jrose-apple , @graydon

Fix an issue with lazy named member lookup where a sequence of lookups
into a class based on full names (e.g., constraint(equalTo:constant:))
could prevent us from adding candidates with the same based name but
different argument labels.

Fixes SR-6834 / rdar://problem/36851018

(cherry picked from commit 0547845)
@DougGregor
Copy link
Member Author

@swift-ci please test

@DougGregor
Copy link
Member Author

@swift-ci please nominate

@DougGregor DougGregor merged commit 02a39ae into swiftlang:swift-4.1-branch Feb 9, 2018
@DougGregor DougGregor deleted the lazy-name-lookup-sr-6834-4.1 branch February 9, 2018 04:35
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