You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the nullish coalescing assignment operator ??= on a logical statement which contains a logical operator (&& or ||) fails to narrow the type, even though using the nullish coalescing operator ?? works correctly.
The text was updated successfully, but these errors were encountered:
cshaa
changed the title
Nullish coalescing assignment operator doesn't work correctly, again
Nullish coalescing assignment operator doesn't work correctly with logical operators
Mar 29, 2022
Bug Report
Using the nullish coalescing assignment operator
??=
on a logical statement which contains a logical operator (&&
or||
) fails to narrow the type, even though using the nullish coalescing operator??
works correctly.Playground.
Probably related to: #40359, #40494, #44988 #42203
The text was updated successfully, but these errors were encountered: