Skip to content

[TS] Lower class expressions as constructor values - #407

Merged
CaelmBleidd merged 1 commit into
neofrom
caelmbleidd/ts-388-class-expressions
Oct 10, 2026
Merged

CaelmBleidd merged 1 commit into
neofrom
caelmbleidd/ts-388-class-expressions

Conversation

@CaelmBleidd

@CaelmBleidd CaelmBleidd commented Oct 4, 2026 •

Copy link
Copy Markdown
Member

A class expression currently becomes UnsupportedValue. Register its synthetic class, emit a fresh NewClassExpr constructor value, and preserve constructor and instance-field initialization. Heritage, named self-binding, static/computed members and lexical captures remain explicitly unsupported.

Validation: fresh typecheck and focused frontend tests (30 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 #388

@CaelmBleidd
CaelmBleidd force-pushed the caelmbleidd/ts-387-computed-new branch from b377280 to 29c8e7c Compare October 10, 2026 17:29
@CaelmBleidd
CaelmBleidd force-pushed the caelmbleidd/ts-388-class-expressions branch from 3e3cc1c to b9735a9 Compare October 10, 2026 17:29
@CaelmBleidd
CaelmBleidd changed the base branch from caelmbleidd/ts-387-computed-new to neo October 10, 2026 17:29
@CaelmBleidd
CaelmBleidd merged commit d39e2b3 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