Version Used: 16.3 Preview 2
Steps to Reproduce:
SomeType? value = null;
if (value?.Property as AnotherType != null)
{
_ = value.Property;
}
SomeType? value2 = null;
if (value2?.Property is AnotherType)
{
_ = value2.Property;
}
Expected Behavior:
No warning is reported on the access of value.Property or value2.Property.
Actual Behavior:
A warning is reported on the access of value.Property, but no warning is reported on the access of value2.Property.
Version Used: 16.3 Preview 2
Steps to Reproduce:
Expected Behavior:
No warning is reported on the access of
value.Propertyorvalue2.Property.Actual Behavior:
A warning is reported on the access of
value.Property, but no warning is reported on the access ofvalue2.Property.