mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
We previously asserted that for a call the function type had the same number of parameters as the declaration. But that’s not true for parameter packs anymore because the parameter pack will be exploded in the function type to account for passing multiple arguments to the pack. To fix this, use `ConcreteDeclRef` instead of a `ValueDecl`, which has a substitution map and is able to account for the exploded parameter packs when accessed using `getParameterAt`. rdar://100066716
1.6 KiB
1.6 KiB