mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Avoid claiming un-labeled defaulted parameters by out-of-order un-labeled arguments or parts of variadic argument sequence, because that might be incorrect. The following example is supposed to type-check correctly but without these changes produces `missing argument for parameter #4 in call` error, because `3` will be claimed as '_ b:': ```swift func foo(_ a: Int, _ b: Int = 0, c: Int = 0, _ d: Int) {} foo(1, c: 2, 3) ``` Resolves: rdar://problem/43525641
203 KiB
203 KiB