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

RSRP-188945: CA 'Specify type explicitly' 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:35:17 PM
Updated Jun 21, 2011 2:53:42 PM
Priority Critical
Type Bug
Fix versions 6.1
State Open
Assignee eugene legkiy (jenya.legkiy)
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(); // Apply CA 'Specify type explicitly'
    }
}


Result:
class B
{
    static void Main()
    {
        List x = A.Foo(); // List is unresolved
    }
}

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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