Skip to content

[5.9][ConstraintSystem] Fix support for a single pack expansion parameter … #64672

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 28, 2023

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Mar 28, 2023

…in init references

In Swift 5 and earlier initializer references are handled in a special way
that uses a type variable to represent a type of the parameter list.
Such type variables should be allowed to bind to a pack expansion
type to support cases where initializer has a single unlabeled variadic
generic parameter - init(_ data: repeat each T).

(cherry picked from commit 24625bb)

…in `init` references

In Swift 5 and earlier initializer references are handled in a special
way that uses a type variable to represent a type of the parameter
list. Such type variables should be allowed to bind to a pack expansion
type to support cases where initializer has a single unlabeled variadic
generic parameter - `init(_ data: repeat each T)`.

(cherry picked from commit 24625bb)
@xedin xedin added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.9 labels Mar 28, 2023
@xedin xedin requested a review from hborla March 28, 2023 16:36
@xedin xedin requested a review from a team as a code owner March 28, 2023 16:36
@xedin
Copy link
Contributor Author

xedin commented Mar 28, 2023

@swift-ci please test

@xedin xedin merged commit 15ea972 into swiftlang:release/5.9 Mar 28, 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants