Closed sebastien-marichal closed 2 months ago
if (arg.Property is Fruit) // Compliant - FN { _ = ((Fruit)(arg.Property)).Property; } if (arg.Property is Fruit) // Noncompliant { _ = ((Fruit)arg.Property).Property; // Secondary }
When not using parenthesis, the rule raises as expected.
9486 Introduce an FN when casting an object to access an inner property with parenthesis:
When not using parenthesis, the rule raises as expected.