Skip to content

[TS] Preserve compound and logical assignment references - #425

Merged
CaelmBleidd merged 1 commit into
neofrom
caelmbleidd/ts-assignment-reference-capture
Oct 10, 2026
Merged

CaelmBleidd merged 1 commit into
neofrom
caelmbleidd/ts-assignment-reference-capture

Conversation

@CaelmBleidd

@CaelmBleidd CaelmBleidd commented Oct 4, 2026 •

Copy link
Copy Markdown
Member

When receiver.m += 1 reads an object whose valueOf replaces the captured receiver binding, the frontend previously stored the result in the replacement object. Compound and logical assignments now save their selected receiver and raw index before Get or coercion can change those bindings. Logical assignments also preserve that selection when an accessor getter changes the source binding before the assign/keep decision.

Validation: fresh typecheck and focused frontend tests (57 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 production tree exactly. For #421 and later, the expected tree also carries the reviewed Kotlin for-await assertion corrections. Frontend/JSON/model correctness does not establish downstream USVM execution support.

@CaelmBleidd
CaelmBleidd force-pushed the caelmbleidd/ts-postfix-tonumeric branch from 8de6b35 to ba84126 Compare October 7, 2026 21:41
@CaelmBleidd
CaelmBleidd force-pushed the caelmbleidd/ts-assignment-reference-capture branch from e837504 to 2a1435f Compare October 7, 2026 21:41
@CaelmBleidd
CaelmBleidd force-pushed the caelmbleidd/ts-postfix-tonumeric branch from ba84126 to fe4515d Compare October 10, 2026 17:41
@CaelmBleidd
CaelmBleidd force-pushed the caelmbleidd/ts-assignment-reference-capture branch from 2a1435f to 70b76e6 Compare October 10, 2026 17:41
@CaelmBleidd
CaelmBleidd changed the base branch from caelmbleidd/ts-postfix-tonumeric to neo October 10, 2026 17:41
@CaelmBleidd
CaelmBleidd merged commit ec4fb1f 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