Skip to content

Conversation

@ahejlsberg
Copy link
Member

@ahejlsberg ahejlsberg commented Jan 19, 2026

A check for an uninitialized Members property was wrongly translated into a check for an empty map. No need for the check in Corsa since map lookups are fine on nil maps.

We already have a failing check that this fixes, so no need for a new regression test.

Fixes #2523.

@ahejlsberg ahejlsberg added this pull request to the merge queue Jan 19, 2026
Merged via the queue into main with commit 9c04932 Jan 19, 2026
27 checks passed
@ahejlsberg ahejlsberg deleted the fix-2523 branch January 19, 2026 22:41
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.

Type inference in a discriminated union with jsx

3 participants