Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-468462: Types with custom equality operators should not mark `this == null` as always false

$
0
0
Reporter Matt Ellis (citizenmatt) 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 == 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.

Viewing all articles
Browse latest Browse all 106942

Trending Articles