Skip to content

SR-2242: poor diagnostic when argument label is omitted #4981

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 3 commits into from
Sep 24, 2016

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Sep 23, 2016

Improve diagnostics when one of the call/subscript parameters is missing required label.

Patch set includes:

  • General refactoring of the diagnoseSingleCandidateFailures;
  • Refactors retrieval of the first/second OOO argument source ranges;
  • Adds additional check to matchCallArguments as well as additional method to
    MatchCallArgumentListener to handle missing label as well as tests.

Resolves SR-2242.

@xedin
Copy link
Contributor Author

xedin commented Sep 23, 2016

/cc @rudkx

@rudkx
Copy link
Contributor

rudkx commented Sep 24, 2016

@swift-ci Smoke test

@rudkx
Copy link
Contributor

rudkx commented Sep 24, 2016

@xedin Can you update the commit message for the final commit to include a reference to the JIRA bug that this is resolving?

@xedin
Copy link
Contributor Author

xedin commented Sep 24, 2016

Sure, I will do that and CI is failing because of #4986

@najacque
Copy link
Contributor

@rudkx
Copy link
Contributor

rudkx commented Sep 24, 2016

Yes, I saw the failure due to #4986 and will restart at some point after that is merged.

@xedin
Copy link
Contributor Author

xedin commented Sep 24, 2016

@rudkx Thanks! I've updated commit message.

@rudkx rudkx self-assigned this Sep 24, 2016
@rudkx
Copy link
Contributor

rudkx commented Sep 24, 2016

@swift-ci Smoke test.

@rudkx rudkx merged commit 366a3a0 into swiftlang:master Sep 24, 2016
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.

3 participants