Skip to content

[TS] Expand fixed-size spread arguments in constructor calls - #403

Merged
CaelmBleidd merged 1 commit into
neofrom
caelmbleidd/ts-376-constructor-spread
Oct 10, 2026
Merged

CaelmBleidd merged 1 commit into
neofrom
caelmbleidd/ts-376-constructor-spread

Conversation

@CaelmBleidd

@CaelmBleidd CaelmBleidd commented Oct 4, 2026 •

Copy link
Copy Markdown
Member

Constructor calls currently retain a spread placeholder. Reuse ordinary argument expansion to preserve each constructor argument and its order. Unknown-length spreads reject before allocation or target invocation; runtime count mismatch handling follows the SpreadExpansionExpr consumer contract.

Validation: fresh typecheck and focused frontend tests (2 passed) on the exact rewritten head. The complete semantic stack at original #425 also passed the frontend build and 622 tests. Rebase preserved the original source tree exactly. Frontend/JSON/model correctness does not establish downstream USVM execution support.

Fixes #376

@CaelmBleidd
CaelmBleidd force-pushed the caelmbleidd/ts-375-ordinary-spread branch from 2e798f5 to d860929 Compare October 10, 2026 17:26
@CaelmBleidd
CaelmBleidd force-pushed the caelmbleidd/ts-376-constructor-spread branch from 8990cb6 to d38b583 Compare October 10, 2026 17:28
@CaelmBleidd
CaelmBleidd changed the base branch from caelmbleidd/ts-375-ordinary-spread to neo October 10, 2026 17:28
@CaelmBleidd
CaelmBleidd merged commit 6c69239 into neo Oct 10, 2026
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.

1 participant