Skip to content

[Diagnostics] Add a special case diagnostic for call to init on `Void… #29504

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 1 commit into from
Jan 28, 2020

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jan 28, 2020

…` with arguments

Expressions like Void(...) have a special locator which ends at
FunctionArgument instead of ApplyArgument which makes it possible
to type-check Void() call successfully. "extraneous arguments" diagnostic
needs to handle such situations specifically e.g. Void(0).

…` with arguments

Expressions like `Void(...)` have a special locator which ends at
`FunctionArgument` instead of `ApplyArgument` which makes it possible
to type-check `Void()` call successfully. "extraneous arguments" diagnostic
needs to handle such situations specifically e.g. `Void(0)`.
@xedin xedin requested a review from hborla January 28, 2020 08:39
@xedin
Copy link
Contributor Author

xedin commented Jan 28, 2020

@swift-ci please smoke test

@xedin xedin merged commit 6f026fb into swiftlang:master Jan 28, 2020
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