This code creates CRR0027 on short circuit condition:
Visual BasicPublic Class Class1
Property Prop As String
Shared Function Foo(class1 As Class1) As Integer
'CRR0027 False Positive on second condition (short circuit!)
If (class1 IsNot Nothing) AndAlso (class1.Prop IsNot Nothing) Then
Return class1.Prop.Length
End If
Return 0
End Function
End Class
Hello Robert,
Thank you for contacting us and providing a code sample.
I have reproduced this issue locally. We will fix it and notify you of our results.
Please see Ticket T580266
Thank you for the update, Robert.
We will answer you in the T580266 thread shortly.