Reporter | Jakub Jiricek (jakub.jiricek@vodafone.com) |
---|---|
Created | Feb 9, 2012 3:18:45 PM |
Updated | Apr 3, 2012 6:11:44 PM |
Priority | Normal |
Type | Feature |
Fix versions | Mirabile Futurum |
State | Open |
Assignee | Evgeny Pasynkov (pasynkov) |
Subsystem | Code Analysis - Control Flow |
Affected versions | No Affected versions |
Fixed in build | No Fixed in build |
in cases like
it would be nice if R# would find the identical (or inverted) conditions and mark them as "always true" or "always false"
private static string test2(int i) { return i == 1 ? (i == 1 ? "one" : "not one") : (i == 1 ? "ONE" : "not ONE"); }
it would be nice if R# would find the identical (or inverted) conditions and mark them as "always true" or "always false"