mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Previously, trailing closures would try to match the first parameter of (possibly optional) function type that didn't seem to have an argument already, but in practice this broke when there were parameters with default arguments before the function parameter. The new rule is far simpler: a trailing closure matches the last parameter. Fixes rdar://problem/17965209. Swift SVN r24898
46 KiB
46 KiB