Misleading warning for ?? throw
.
#24892
Labels
analyzer-recovery
legacy-area-analyzer
Use area-devexp instead.
P2
A bug or feature request we're likely to work on
type-enhancement
A request for a change that isn't a bug
The code
x ?? throw 0
gives the following errors:This is misleading since the real solution to the errors is to add parentheses around the
throw 0
expression.Listing what you expect to find is great, but it should be complete then, and '(' is also possible here.
The text was updated successfully, but these errors were encountered: