Holly Borla
c1dcb9c6f1
[FrontendOptions] Remove bespoke experimental feature flags for ImplicitSome and
...
VariadicGenerics in favor of -enable-experimental-feature X.
2022-11-11 10:14:08 -08:00
Holly Borla
d864cebef3
[TypeResolution] Enable local variable packs.
2022-10-26 17:04:23 -07:00
Holly Borla
032c511754
[ConstraintSystem] Add a PackElementOf constraint to delay mapping opened
...
element pattern types to pattern archetypes until after type variables are
resolved.
2022-10-24 19:46:44 -07:00
Holly Borla
7354ad30c3
[ConstraintSystem] Use opened element types for opaque values in pack expansions.
2022-10-24 18:11:00 -07:00
Holly Borla
ad962d8ed1
[AST] Allow tuple types with consecutive pack expansions.
2022-10-23 22:45:47 -07:00
Holly Borla
596edde3ef
[CSApply] Implement coerceToType for pack expansion expressions.
2022-10-23 22:44:22 -07:00
Holly Borla
13a17ef918
[ConstraintSystem] Use reduced shape types when generating constraints for pack
...
expansion expressions.
2022-10-23 20:25:38 -07:00
Holly Borla
5584752b3e
[ConstraintSystem] Implement value parameter pack forwarding.
2022-10-22 13:41:48 -07:00
Holly Borla
dab3b64c99
[ConstraintSystem] Implement basic type checking for pack expressions.
...
During prechecking, postfix '...' expressions are rewritten to pack
expansion expressions if the operand contains pack references. References
to packs are replaced with opaque values, and the pack expansion stores
the opaque value bindings to decl refs.
2022-10-22 13:41:48 -07:00