Project
ReSharper
Priority
Normal
Type
Bug
Fix versions
2.5.2
State
Fixed
Assignee
Andrey Simanovsky
Subsystem
No subsystem
Affected versions
No Affected versions
Fixed in build
No Fixed in build
  • Created by   Andrew Serebryansky
    4 years ago (12 Mar 2007 14:31)
  • Updated by   Andrew Serebryansky
    4 years ago (26 Mar 2007 22:07)
  • Jira: RSRP-36926
    (history, comments)
 
RSRP-36926 'Remove unused variable' quickfix incorrectly removes other variables too
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
ReSharper incorrectly changes the following code from:

static void Main()
{
using (MemoryStream ms1 = new MemoryStream(),
ms2 = new MemoryStream())
{
ms1.WriteByte(0);
}
}

to:

static void Main()
{
using (new MemoryStream())
{
ms1.WriteByte(0);
}
}


Issue was closed
Comments (0)
 
History
 
Linked Issues (?)
 
TeamCity Changes (0)
 
Issue has no comments