Skip to content

[Diagnostics] Add a diagnostic for single parameter tuple splat #26165

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 8 commits into from
Jul 17, 2019

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jul 16, 2019

Diagnose situation when a single "tuple" parameter is given N arguments e.g.

func foo<T>(_ x: (T, Bool)) {}
foo(1, false) // foo exptects a single argument of tuple type `(1, false)`

xedin added 5 commits July 16, 2019 11:06
Diagnose situation when a single "tuple" parameter is given N arguments e.g.

```swift
func foo<T>(_ x: (T, Bool)) {}
foo(1, false) // foo exptects a single argument of tuple type `(1, false)`
```
@xedin xedin requested a review from DougGregor July 16, 2019 18:08
@xedin
Copy link
Contributor Author

xedin commented Jul 16, 2019

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Jul 16, 2019

@swift-ci please test Linux platform

@swiftlang swiftlang deleted a comment from swift-ci Jul 16, 2019
@xedin xedin force-pushed the move-single-tuple-param-splat branch from eaccd61 to 3697bd5 Compare July 16, 2019 23:35
@xedin
Copy link
Contributor Author

xedin commented Jul 16, 2019

@swift-ci please test

@swiftlang swiftlang deleted a comment from swift-ci Jul 16, 2019
@swiftlang swiftlang deleted a comment from swift-ci Jul 16, 2019
@xedin xedin merged commit 9ff887b into swiftlang:master Jul 17, 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.

2 participants