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

RSRP-453597: Full Cleanup removes required 'using static' directives

$
0
0
Reporter Vladimir Reshetnikov (nikov) Vladimir Reshetnikov (nikov)
Created Feb 6, 2016 3:28:55 AM
Updated Apr 20, 2018 12:42:09 PM
Subsystem Code Analysis - C#
Assignee Alexander Shvedov (shvedov)
Priority Major
State Submitted
Type Bug
Fix version No Fix versions
Affected versions 10.0.2
Fixed In Version ReSharper Undefined
VsVersion VS 2015 RTM
using static System.Int32;

class C
{
static void Main()
{
var n = nameof(Parse);
}
}

Apply Full Cleanup (Ctrl+Alt+Shift+F).

Result:
internal class C
{
private static void Main()
{
var n = nameof(Parse); // error CS0103: The name 'Parse' does not exist in the current context
}
}

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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