>
> It's error by design: we don't allow tuple unpacking in closure parameters.
> Another example:
>
> func call(block: ((Int, Int)) -> Int) // note double parens
> call { (a, b) in print(a + b) } // will be error
> call { (a) in print(a.0 + a.1) } // okIs there a reason for this design, or would it be possible / make sense to support this? F _______________________________________________ swift-evolution mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-evolution
