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

RSRP-286341: Erroneous "Redundant control flow statement" when a switch is inside of a try/finally block

$
0
0
Reporter Justin (McCulty) Justin (McCulty)
Created Dec 9, 2011 11:17:49 PM
Updated Dec 31, 2011 12:38:54 AM
Resolved Dec 12, 2011 1:27:12 PM
Priority Normal
Type Unspecified
Fix versions Next
State Fixed
Assignee Evgeny Pasynkov (pasynkov)
Subsystem No subsystem
Affected versions No Affected versions
Fixed in build 6.5.1.397
Given the following code:

            try
            {
                switch (y)
                {
                    case 1:
                        break;
                }
            }
            finally
            {
            }


The break statement will be greyed out with the warning "Redundant control flow statement". ReSharper suggests removing the statement which would cause a compiler error.

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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