Skip to content

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