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