Skip to content

Preserve runtime kinds of object literal fields - #504

Merged
CaelmBleidd merged 1 commit into
mainfrom
caelmbleidd/pr479-ts-object-literal-runtime-fields
Oct 14, 2026
Merged

CaelmBleidd merged 1 commit into
mainfrom
caelmbleidd/pr479-ts-object-literal-runtime-fields

Conversation

@CaelmBleidd

@CaelmBleidd CaelmBleidd commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

Object-literal fields can change runtime kind or contain undefined even when their inferred declaration is primitive. Track the storage kind of concrete literal writes, read that kind instead of imposing the inferred declaration, and preserve boxed runtime branches when reading and writing mixed values.

The diff against main covers only field reads/writes and their TypeScript regressions: four files, +122/-15. Rebased onto 5b79aae3ee7361a37b9038a175cbf4b03703d6d2, which already contains the shared solver observation and stopped-state observer changes. The original feature patch is unchanged, as verified by git range-diff.

Validation: all three ObjectLiteralRuntimeFields tests passed on the rebased branch, covering optional booleans, fork-dependent storage kinds, and later writes of other kinds. Whitespace checks passed. Broader suites remain for CI; these checks establish the tested TypeScript semantics, not class-experiment coverage.

@CaelmBleidd
CaelmBleidd force-pushed the caelmbleidd/pr479-ts-object-literal-runtime-fields branch from b9d410b to fea04d4 Compare October 14, 2026 15:46
@CaelmBleidd
CaelmBleidd force-pushed the caelmbleidd/pr479-ts-void-storage branch from 52c73ce to 80b1205 Compare October 14, 2026 15:46
Base automatically changed from caelmbleidd/pr479-ts-void-storage to caelmbleidd/pr479-retain-stopped-ts-states October 14, 2026 15:59
@CaelmBleidd
CaelmBleidd force-pushed the caelmbleidd/pr479-retain-stopped-ts-states branch from 1416a0d to 2b7355b Compare October 14, 2026 16:27
Base automatically changed from caelmbleidd/pr479-retain-stopped-ts-states to main October 14, 2026 16:30
@CaelmBleidd
CaelmBleidd force-pushed the caelmbleidd/pr479-ts-object-literal-runtime-fields branch from fea04d4 to 4c04f07 Compare October 14, 2026 19:32
@CaelmBleidd
CaelmBleidd merged commit 43af0bd into main Oct 14, 2026
7 checks passed
@CaelmBleidd
CaelmBleidd deleted the caelmbleidd/pr479-ts-object-literal-runtime-fields branch October 14, 2026 19:40
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