Parent: #67
Scope
Make ts_checker fully green by porting the remaining TypeScript semantics and exact diagnostic behavior. Do not weaken assertions or encode fixture-specific outcomes.
Current verified state
After fixing distributive-conditional union member ownership:
- 2,976 / 3,006 pass
- 30 fail
- 0 crash (down from 2 crashes)
The crash fix copies union member IDs before recursive conditional evaluation so interner reallocations cannot invalidate a borrowed slice.
Remaining failure clusters
- Enum/member literal assignment compatibility.
- Global-script
this indexed access diagnostics.
- Generic defaults, conditional distribution, NonNullable, mapped and template types.
- Variadic tuple inference and callback arity.
- Overload diagnostic anchoring and CheckJS/JSDoc arity.
- Accessor read/write and spread typing.
- Alias/generic-instance diagnostic rendering.
- Recursive type depth/circular mapped diagnostics.
Completion gate
Parent: #67
Scope
Make
ts_checkerfully green by porting the remaining TypeScript semantics and exact diagnostic behavior. Do not weaken assertions or encode fixture-specific outcomes.Current verified state
After fixing distributive-conditional union member ownership:
The crash fix copies union member IDs before recursive conditional evaluation so interner reallocations cannot invalidate a borrowed slice.
Remaining failure clusters
thisindexed access diagnostics.Completion gate
./pantry/.bin/zig build test -Dfilter=ts_checker --summary failuresreports 3,006 / 3,006.