Skip to content

[ConstraintSystem] Some more variadic generic fixes #66080

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 5 commits into from
May 24, 2023

Conversation

xedin
Copy link
Contributor

@xedin xedin commented May 23, 2023

  • Limit assert in getFunctionArgApplyInfo to types without type parameter packs
  • PackMacher: Match pack expansion elements pair-wise if pack arity matches
  • Diagnose conformance failures related to pack expansion patterns
  • Add a possibility to check whether PackConformance is invalid

Resolves: rdar://109539394

xedin added 4 commits May 22, 2023 10:53
… without type parameter packs

If function type of some declaration has a at least on type parameter
pack it could mean that number of parameters in "applied" type could
be different from that of "interface" type.
…ty matches

This covers situations like `Pack{repeat each T1, repeat each T2}`
vs. `Pack{repeat $T1, repeat $T2}` where type variables are allowed
to bind to packs.

Resolves: rdar://109539394
@xedin xedin requested review from hborla and slavapestov as code owners May 23, 2023 16:49
@xedin
Copy link
Contributor Author

xedin commented May 23, 2023

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented May 24, 2023

@swift-ci please test

@xedin xedin merged commit acf64e3 into swiftlang:main May 24, 2023
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