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

RSRP-287770: Do not suggest to create an attribute class within a generic type

$
0
0
Reporter Vladimir Reshetnikov (nikov) Vladimir Reshetnikov (nikov)
Created Jan 14, 2012 5:07:59 AM
Updated Jan 14, 2012 5:07:59 AM
Priority Normal
Type Bug
Fix versions No Fix versions
State Submitted
Assignee Unassigned
Subsystem No subsystem
Affected versions No Affected versions
Fixed in build No Fixed in build
class A<T>
{
    [C] // Create from usage
    void Foo() { }
}


Result:


using System;

class A<T>
{
    [C]
    void Foo() { }

    private class CAttribute : Attribute // error CS0698: A generic type cannot derive from 'Attribute' because it is an attribute class
    {
    }
}

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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