lang F1 6: pack-spread in parameterized-type args (Combined($R, ..sources.T))
Parser now accepts a `..` spread in a parameterized-type arg list; in instantiateGenericStruct a spread arg bound to the variadic type-param expands via packTypeElems (so `..sources.T` projects each source pack element protocol type-arg into ..$Ts). `Combined(s64, ..sources.T)` for a VL(s64) source instantiates Combined(s64, s64). examples/209 (with explicit per-element xx erase). 244 examples + unit green. Next: (..sources) whole-pack materialization with per-element erasure into the protocol-typed field (c.sources = (..sources) currently segfaults).
This commit is contained in:
1
tests/expected/209-pack-type-arg-spread.exit
Normal file
1
tests/expected/209-pack-type-arg-spread.exit
Normal file
@@ -0,0 +1 @@
|
||||
0
|
||||
1
tests/expected/209-pack-type-arg-spread.txt
Normal file
1
tests/expected/209-pack-type-arg-spread.txt
Normal file
@@ -0,0 +1 @@
|
||||
7
|
||||
Reference in New Issue
Block a user