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

RSRP-188950: 'Extract method' forgets to insert type arguments and using directives for retargetable types

$
0
0
Reporter Vladimir Reshetnikov (nikov) Vladimir Reshetnikov (nikov)
Created Aug 20, 2010 6:47:58 PM
Updated Jul 8, 2011 5:46:31 PM
Priority Normal
Type Bug
Fix versions No Fix versions
State Open
Assignee Sergey Shkredov (serjic.shkredov)
Subsystem No subsystem
Affected versions No Affected versions
Fixed in build No Fixed in build
// .NET 2.0
using System.Collections.Generic;

public class A
{
    public static List<int> Foo()
    {
        return null;
    }
}

// .NET 4.0
class B
{
    static void Main()
    {
        var x = A.Foo(); // Extract method from expression A.Foo()
    }
}


Result:

class B
{
    static void Main()
    {
        var x = Bar();
    }

    static List Bar() // List is unresolved
    {
        return A.Foo();
    }
}

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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