Commit Graph

6 Commits

Author SHA1 Message Date
Slava Pestov
2dd6d24834 Sema: Tweak PackMatchers to preserve PackExpansionType on both sides 2022-10-27 13:46:58 -04:00
Holly Borla
5584752b3e [ConstraintSystem] Implement value parameter pack forwarding. 2022-10-22 13:41:48 -07:00
Slava Pestov
cbce4a52ca Sema: Support PackExpansionTypes in matchPackTypes() 2022-10-21 22:17:38 -04:00
Slava Pestov
73e478871c Sema: Tweak PackExpansionMatcher to respect invariants
Don't emit a match with a PackExpansionType on one side and a
PackType on the other; always unwrap the PackExpansionType
to get its underlying pattern.
2022-10-17 23:23:09 -04:00
Slava Pestov
a000b78eac AST: Introduce ParamPackMatcher, for structural matching of function types 2022-10-16 21:37:25 -04:00
Slava Pestov
9d16b821a8 AST: Move Sema's TuplePackMatcher to AST
I'm also going to use it in TypeMatcher, for the Requirement Machine's
same-type requirement desugaring.
2022-10-16 21:37:25 -04:00