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

RSRP-287833: Wrong hint for a break on switch within try & finally section

$
0
0
Reporter Stefan Turalski (Stefan.Turalski) Stefan Turalski (Stefan.Turalski)
Created Jan 18, 2012 12:42:19 PM
Updated Jan 18, 2012 12:43:06 PM
Priority Normal
Type Bug
Fix versions No Fix versions
State Submitted
Assignee Unassigned
Subsystem No subsystem
Affected versions 6.1.1
Fixed in build No Fixed in build
As in the RSRP-284948

In section like
Code
string str = Console.ReadLine();
try
{
  switch (str)
  {
    case "A":
      Console.WriteLine("A");
      break;
    case "B":
      Console.WriteLine("B");
      break; //<<<<<< wrongly flagged as not needed
  }
}
finally
{
    Console.WriteLine("C");
}

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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