Type promoting local variables on conditional member access #60015
Labels
closed-duplicate
Closed in favor of an existing report
legacy-area-analyzer
Use area-devexp instead.
I could not find another issue related so I'll open this one but if I missed it please let me know.
When we have the following code:
I feel like for local variables, when we have
?
just after them, we could promote them to non-nulls if the following expression is constant (liketrue
/false
). I'm unsure of this when the following expression is not constant but if someone smarter than me can come up with a reasonable line of thinking to enhance this I will not complain.The text was updated successfully, but these errors were encountered: