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
{{ message }}
Repository navigation
ref and out declarations can be initialized with null references #20518
Wait, does that switch actually prevent this from happening? The only actual dereference happening here is on the out parameter, not the ref parameter.
Activity
rikkimax commentedon Apr 27, 2026
It is now supported in ~master, turn on the null check with
-check=nullderef=onHerringway commentedon Apr 27, 2026
Wait, does that switch actually prevent this from happening? The only actual dereference happening here is on the out parameter, not the ref parameter.
rikkimax commentedon Apr 27, 2026
Yes it catches it at runtime.
And with fast dfa engine enabled
-preview=fastdfa:Herringway commentedon Apr 27, 2026
Just to be 100% clear:
Results in a thrown Error?
rikkimax commentedon Apr 27, 2026