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
[SR-5202] Another Swift 4.0 regression regarding tuple decomposition in closures #47778
Comments
cc @slavapestov, @rudkx |
The empty tuple is a value regardless of whether you care about it or not. |
(Which isn't to say it isn't worth special-casing. It's just that it would be a special case.) |
Sure, but honestly I think the previous behavior made more sense. |
> (Which isn't to say it isn't worth special-casing. It's just that it would be a special case.) Makes sense |
So any updates on this regression? |
Oops. It was "fixed" when we rolled back most of SE-0110. It should be working now. |
Are there regression tests for this though? |
Specifically I mean not needing `_ in` for a closure that takes a `Void` parameter. |
I couldn't find anything specifically testing that, so: #11674 |
Awesome, thank you! |
Environment
Swift version 4.0 (swiftlang-900.0.43 clang-900.0.22.8)
Additional Detail from JIRA
md5: e2a4b0b15d704b35cd7e884fe2a5d914
Issue Description:
This used to compile in Swift 3.x:
But now fails with a very silly error IMO:
Why would I want to explicitly ignore Void?
The text was updated successfully, but these errors were encountered: