Skip to content

[CSSimplify] Account for the fact that variadic generic parameters co… #64601

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 24, 2023

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Mar 24, 2023

…uld be specialized

If generic parameter comes from a variadic type declaration it's possible
that it got specialized early and is no longer represented by a pack expansion type.
For example, consider expression - Test<Int>(42) where Test<each T> and
the initializer is declared as init(_: repeat each T). Although declaration based
information reports parameter at index 0 as variadic generic the call site specializes
it to Int.

Resolves: rdar://107151854

…uld be specialized

If generic parameter comes from a variadic type declaration it's
possible that it got specialized early and is no longer represented
by a pack expansion type. For example, consider expression -
`Test<Int>(42)` where `Test<each T>` and the initializer
is declared as `init(_: repeat each T)`. Although declaration
based information reports parameter at index 0 as variadic generic
the call site specializes it to `Int`.

Resolves: rdar://107151854
@xedin xedin requested a review from hborla as a code owner March 24, 2023 04:26
@xedin
Copy link
Contributor Author

xedin commented Mar 24, 2023

@swift-ci please test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants