Skip to content

Preserve declared nullish alternatives in call return types - #434

Merged
CaelmBleidd merged 2 commits into
neofrom
caelmbleidd/nullish-call-results-20261013
Oct 13, 2026
Merged

CaelmBleidd merged 2 commits into
neofrom
caelmbleidd/nullish-call-results-20261013

Conversation

@CaelmBleidd

Copy link
Copy Markdown
Member

Preserve explicitly declared null and undefined alternatives in instantiated call return types when TypeScript strictNullChecks is disabled. Keep checker-selected generic/overload results; nullable generic constraints alone do not add a return alternative.

Validation: three real typechecker/frontend regressions passed (finite literal union, generic alias substitution, nullable-constraint precision). Kotlin call-lowering roundtrip suite passed. Independent change against neo; this supports the finite return-kind checks in USVM #394.

@github-actions

Copy link
Copy Markdown
Contributor

Test Results

  239 files  ±0    239 suites  ±0   15m 25s ⏱️ + 1m 38s
  836 tests +1    824 ✅ +1  12 💤 ±0  0 ❌ ±0 
2 106 runs  +1  2 056 ✅ +1  50 💤 ±0  0 ❌ ±0 

Results for commit 198efb9. ± Comparison against base commit bcad76f.

@CaelmBleidd
CaelmBleidd merged commit 7596ae5 into neo Oct 13, 2026
8 checks passed
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