1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
// CS0579: The attribute `TestAttributesCollecting.A' cannot be applied multiple times // Line: 19 using System; namespace TestAttributesCollecting { class A : Attribute { public A (int a) { } } partial class G1<[A (1)]T> { } partial class G1<[A (2)]T> { } }