History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-58217
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Sergey Shkredov
Reporter: Vladimir Reshetnikov
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
ReSharper

Cannot inline method with 'using'

Created: 16 Feb 08 21:30   Updated: 22 Feb 08 23:11
Component/s: Refactorings - Inline Method
Fix Version/s: None
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 729


 Description  « Hide
using System.IO;


class Program
{
    static void Main()
    {
        var x = 1;
        var y = Foo(x);
    }
    static decimal Foo(decimal x)
    {
        using(var w = new StreamWriter(Stream.Null))
        {
            w.Write(x);
            return 1.0M/x + w.GetHashCode();
        }
    }
}


 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.