Skip to content
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

Revert "[Sema] ban multi-arguments to tuple coercion" #3922

Merged
merged 1 commit into from Aug 2, 2016

Conversation

jrose-apple
Copy link
Contributor

Reverts #3895. It breaks cases where there really is a single unlabeled argument of tuple type, like this:

let pairs = [(1, "A"), (2, "B")]
print(pairs.map { $0.0 })

@jrose-apple
Copy link
Contributor Author

@swift-ci Please smoke test

@jrose-apple
Copy link
Contributor Author

This should be followed by reverts of the downstream patches apple/swift-corelibs-foundation#497, apple/swift-corelibs-xctest#149, and apple/swift-package-manager#581; the changes there are incorrect for higher-order functions.

@jrose-apple
Copy link
Contributor Author

cc @dduan and @DougGregor (to keep everyone in the loop)

@dduan
Copy link
Collaborator

dduan commented Aug 2, 2016

👍

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.

None yet

2 participants