Reporter | Matt Ellis (citizenmatt) |
---|---|
Created | Feb 20, 2018 6:51:56 PM |
Updated | Apr 19, 2018 5:28:25 PM |
Subsystem | Code Analysis |
Assignee | Andrey Dyatlov (Andrey.Dyatlov) |
Priority | Normal |
State | Fixed In Branch |
Type | Bug |
Fix version | No Fix versions |
Affected versions | No Affected versions |
Fixed In Version ReSharper | Undefined |
VsVersion | All Versions |
Given a type that implements a custom equality operator, the expression
This highlight is shown in Unity projects, which implement a custom
this == null
cannot be determined to be always false
. This highlight is shown in Unity projects, which implement a custom
null
check in the ==
operator - certain classes are wrappers around unmanaged objects and return false
if the unmanaged object has been destroyed.