[Mono-bugs] [Bug 604748] New: Attribute usage attributes on base attributes in referenced assemblies not honored
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue May 11 09:40:07 EDT 2010
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: mono-bugs at lists.ximian.com
ReportedBy: rkvinge at novell.com
QAContact: mono-bugs at lists.ximian.com
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.
More information about the mono-bugs
mailing list