Skip to content

Conversation

@slavapestov
Copy link
Contributor

In Swift 3, this worked 'on accident' because of some quirks in argument matching:

let fn: (Int...) -> () = { let x: [Int] = $0 }

This patch makes this work again, together with (Int, Int...) -> () where the closure body uses $0 and $1.

It's a hack and it's not done yet, but @DougGregor offered to take over :)

@@ -0,0 +1,84 @@
let fn: (Int...) -> () = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is beautiful 🙇

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.

3 participants