Skip to content

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

Merged
xedin merged 1 commit into
swiftlang:masterfrom
xedin:special-void-init-handling
Jan 28, 2020
Merged

[Diagnostics] Add a special case diagnostic for call to init on `Void…#29504
xedin merged 1 commit into
swiftlang:masterfrom
xedin:special-void-init-handling

Conversation

@xedin
Copy link
Copy Markdown
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
Copy Markdown
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