Reporter | 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:
x != null is redundant here, since is always returns false if its first operand is null.
if (x != null && x is SomeType) { ... }
x != null is redundant here, since is always returns false if its first operand is null.