[Mono-bugs] [Bug 77485][Nor] New - error CS0616: `AttrB': is not an attribute class

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Feb 6 16:26:57 EST 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by kiess at h3c.de.

http://bugzilla.ximian.com/show_bug.cgi?id=77485

--- shadow/77485	2006-02-06 16:26:57.000000000 -0500
+++ shadow/77485.tmp.7735	2006-02-06 16:26:57.000000000 -0500
@@ -0,0 +1,49 @@
+Bug#: 77485
+Product: Mono: Compilers
+Version: 1.0
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: kiess at h3c.de               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: error CS0616: `AttrB': is not an attribute class
+
+Description of Problem:
+MCS complains about AttrB not being an attribute class even through it is.
+
+Steps to reproduce the problem:
+1. cat > Attr.cs << EOF
+[AttrB]
+public class M {
+  public static void Main(){}
+}
+
+[AttrB]
+public class AttrA : System.Attribute {}
+
+public class AttrB : AttrA {}
+EOF
+2. mcs Attr.cs
+
+Actual Results:
+Attr.cs(6,2): error CS0616: `AttrB': is not an attribute class
+Attr.cs(9,14):: `AttrB', name of symbol related to previous error
+Compilation failed: 1 error(s), 0 warnings
+
+
+Expected Results:
+Successful compilation.
+
+How often does this happen? 
+always
+
+Additional Information:
+I'm using Mono svn r56594


More information about the mono-bugs mailing list