A little strange behavior, see following:
Visual BasicPublic Class Constraint
Public Property Prop As Integer
End Class
Public Class Class1(Of T As Constraint)
Public Function Foo([alias] As T) As Boolean
If [alias] Is Nothing Then Return False
'CRR0027
Return [alias].GetHashCode <> 0
End Function
Public Function Bar(value As T) As Boolean
If value Is Nothing Then Return False
'No CRR0027
Return value.GetHashCode <> 0
End Function
End Class
Public Class Class2(Of T)
Public Function Foo([alias] As T) As Boolean
If [alias] Is Nothing Then Return False
'No CRR0027
Return [alias].GetHashCode <> 0
End Function
End Class
Hi Robert,
Thank you for pointing out this issue. I've reproduced this behavior and passed this ticker to our R&D team.
We will update this ticket once we have any results.