Skip to content

Conversation

@xedin
Copy link
Contributor

@xedin xedin commented Jul 21, 2023

Cherry-pick of #67435


  • Explanation:

Implements ranking of variadic generic overloads.

If one of the choices is variadic generic, let's use matchCallArguments
to find argument/parameter mappings and form pack expansions for arguments
when necessary.

Resolves: rdar://112029630

xedin added 2 commits July 21, 2023 10:44
…ric overloads

Since this type of early favoring checks number of arguments and matches
labels it would always favor non-variadic overloads which is incorrect.

(cherry picked from commit 59908ee)
If one of the choices is variadic generic, let's use `matchCallArguments`
to find argument/parameter mappings and form pack expansions for arguments
when necessary.

Resolves: rdar://112029630
(cherry picked from commit b98cd11)
@xedin xedin added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.9 labels Jul 21, 2023
@xedin xedin requested a review from hborla July 21, 2023 17:48
@xedin xedin requested a review from a team as a code owner July 21, 2023 17:48
@xedin
Copy link
Contributor Author

xedin commented Jul 21, 2023

@swift-ci please test

@hborla hborla merged commit 713a434 into swiftlang:release/5.9 Jul 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🍒 release cherry pick Flag: Release branch cherry picks swift 5.9

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants