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

RSRP-200291: Illegal warning 'Code is heuristically unreachable' for *break* inside switch statement

$
0
0
Reporter Alexander Nesterenko (alexn) Alexander Nesterenko (alexn)
Created Dec 14, 2010 12:38:40 PM
Updated Jan 20, 2012 7:11:55 PM
Resolved Jan 20, 2012 1:41:32 PM
Priority Critical
Type Bug
Fix versions Next
State Fixed
Assignee Evgeny Pasynkov (pasynkov)
Subsystem Code Analysis - Control Flow
Affected versions No Affected versions
Fixed in build 6.5.1.2889
switch("")
{
   defaut:
       Debug.Fail("error");
       break;
}


i removed break; and got compilation error Csc Error CS0163: Control cannot fall through from one case label ('default:') to another

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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