Skip to content

Preserve enum guard narrowing and generic callable declarations - #453

Merged
somdoron merged 1 commit into
mainfrom
doron/sub-2446-2447-enum-guards
Nov 23, 2026
Merged

somdoron merged 1 commit into
mainfrom
doron/sub-2446-2447-enum-guards

Conversation

@somdoron

Copy link
Copy Markdown
Contributor

Editor declarations widened enum-member predicates to the whole enum and dropped generic callable binders. The renderer now preserves member names, binders, and their full constraints.

A guard’s false branch now excludes matching enum values, including same-valued aliases, and retains the other alternatives in a union.

SUB-2446 · SUB-2447

SUB-2446, SUB-2447

Co-Authored-By: OpenAI Codex <noreply@openai.com>
@somdoron
somdoron added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit 4128239 Nov 23, 2026
5 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