http://bugzilla.novell.com/show_bug.cgi?id=604748

http://bugzilla.novell.com/show_bug.cgi?id=604748#c0


           Summary: Attribute usage attributes on base attributes in
                    referenced assemblies not honored
    Classification: Mono
           Product: Mono: Compilers
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: ---
           Blocker: ---


Repro:

a.cs:
using System;
public class DerivedAttribute : BaseAttribute {}
[AttributeUsage(AttributeTargets.Property, AllowMultiple = true)]
public class BaseAttribute : System.Attribute {}

b.cs:
public class C {
    [Derived ()]
    [Derived ()]
    int I { get; set; }
}

gmcs a.cs -target:library
gmcs b.cs -target:library -r:a.dll

b.cs(2,10): error CS0579: The attribute `DerivedAttribute' cannot be applied
multiple times
b.cs(3,10): (Location of the symbol related to previous error)

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to