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

RSRP-468675: 'Add break;' fix should add break in block if it's the only statement in section's body

$
0
0
Reporter Andrey Dyatlov (Andrey.Dyatlov) Andrey Dyatlov (Andrey.Dyatlov)
Created Mar 14, 2018 3:20:29 PM
Updated Apr 23, 2018 1:53:19 PM
Resolved Apr 23, 2018 1:53:19 PM
Subsystem Quick Fixes
Assignee Andrey Dyatlov (Andrey.Dyatlov)
Priority Normal
State Fixed
Type Bug
Fix version 2018.1
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
  public void M(object o)
{
switch (o)
{
default:
{

}
} // <-- here
}

expected result:
default;
{
break;
}

actual result:
default:
{
}
break;

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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