Skip to content

fix ?? fallback being ignored in assignments - #32

Merged
Jamextreme140 merged 1 commit into
CodenameCrew:codename-devfrom
Villezen:fix-null-coalescing
Nov 20, 2026
Merged

Jamextreme140 merged 1 commit into
CodenameCrew:codename-devfrom
Villezen:fix-null-coalescing

Conversation

@Villezen

Copy link
Copy Markdown

a = b ?? c gets read as (a = b) ?? c, so if b is null then a becomes null instead of c

This happens because ?? was in a group which came after the = group, so = always got checked first

This PR moves ?? to its own group between || and =

@Jamextreme140
Jamextreme140 merged commit 4afc9f1 into CodenameCrew:codename-dev Nov 20, 2026
1 check 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.

2 participants