Skip to content

[Diagnostics] Port/Improve diagnostics for @dynamicCallable and callAsFunction #28630

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 6 commits into from
Dec 9, 2019

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Dec 7, 2019

  • Improve diagnostics for mutating callAsFunction used on r-value
  • Align @dynamicCallable argument locators with regular calls
  • Port tailored diagnostics for missing dynamicallyCall methods

Resolves: SR-11378

@xedin xedin requested review from dan-zheng and hborla December 7, 2019 00:45
@xedin
Copy link
Contributor Author

xedin commented Dec 7, 2019

Besides improving diagnostics this has an added benefit of allowing us to remove a big chunk of visitApplyExpr as a follow-up relatively easily.

@xedin
Copy link
Contributor Author

xedin commented Dec 7, 2019

@swift-ci please smoke test

Copy link
Contributor

@dan-zheng dan-zheng left a comment

Choose a reason for hiding this comment

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

Nice! Thanks for the ping, this patch is educational for me 🙂

@xedin xedin merged commit 3d7306a into swiftlang:master Dec 9, 2019
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