a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
32 lines
432 B
C#
32 lines
432 B
C#
// CS0416: `N.C<T>': an attribute argument cannot use type parameters
|
|
// Line: 15
|
|
|
|
using System;
|
|
|
|
public class TestAttribute : Attribute
|
|
{
|
|
object type;
|
|
|
|
public object Type
|
|
{
|
|
get
|
|
{
|
|
return type;
|
|
}
|
|
set
|
|
{
|
|
type = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
namespace N
|
|
{
|
|
class C<T>
|
|
{
|
|
[Test(Type=typeof(C<T>))]
|
|
public void Foo()
|
|
{
|
|
}
|
|
}
|
|
} |