Skip to content

[CSSimplify] Exploaded tuple argument should assume param's label if … #64733

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
Mar 31, 2023

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Mar 29, 2023

…first element doesn't have one

If tuple doesn't have a label for its first element and parameter does,
let's assume parameter's label to aid argument matching.

For example:

func test(val: Int, _: String) {}

test(val: (42, "")) // expands into `(val: 42, "")`

Resolves: rdar://106775969

…first element doesn't have one

If tuple doesn't have a label for its first element
and parameter does, let's assume parameter's label
to aid argument matching. For example:

```swift
func test(val: Int, _: String) {}

test(val: (42, "")) // expands into `(val: 42, "")`
```

Resolves: rdar://106775969
@xedin xedin requested a review from hborla as a code owner March 29, 2023 17:50
@xedin
Copy link
Contributor Author

xedin commented Mar 29, 2023

@swift-ci please test

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