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 16, 2012 12:59:27 PM
Priority Normal
Type Feature
Fix versions No Fix versions
State Submitted
Assignee Alexey Kuptsov (alexey.kuptsov)
Subsystem Quick Fixes
Affected versions 6.1
Fixed in build No Fixed in build
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>