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

RSRP-288348: Highlighting for redundant null check followed by 'is'

$
0
0
Reporter Julien Lebosquain (mrjul) Julien Lebosquain (mrjul)
Created Feb 16, 2012 12:58:03 PM
Updated Feb 17, 2012 6:19:22 PM
Resolved Feb 16, 2012 8:52:48 PM
Priority Normal
Type Feature
Fix versions Next
State Fixed
Assignee Evgeny Pasynkov (pasynkov)
Subsystem Quick Fixes
Affected versions 6.1
Fixed in build 6.5.1.4579
A useful highlighting / quick fix could be to warn about the following situation:

if (x != null && x is SomeType) { ... }

x != null is redundant here, since is always returns false if its first operand is null.

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>