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

RSRP-288074: Can flag expression as always false when evaluating whether an unsigned value is less than zero

$
0
0
Reporter Drew Noakes (drewnoakes) Drew Noakes (drewnoakes)
Created Jan 30, 2012 5:26:07 PM
Updated Jan 30, 2012 5:26:07 PM
Priority Normal
Type Feature
Fix versions No Fix versions
State Submitted
Assignee Evgeny Pasynkov (pasynkov)
Subsystem Code Analysis - Control Flow
Affected versions 6.1
Fixed in build No Fixed in build
I came across this bug today:

var i = (ushort)Blah();
if (i < 0)
   ThisCodeUnreachable();


I cannot see why R# couldn't flag this branch as unreachable.

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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