1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
// CS0416: `C<T>': an attribute argument cannot use type parameters // Line: 15 using System; public class TestAttribute : Attribute { public TestAttribute(Type type) { } } class C<T> { [Test(typeof(C<T>))] public static void Foo() { } }