[Mono-bugs] [Bug 45876][Nor] Changed - Attributes on operators are specified twice in the MSIL

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Sun, 13 Jul 2003 07:50:24 -0400 (EDT)


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 jc@manoli.net.

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

--- shadow/45876	Sun Jul 13 00:03:37 2003
+++ shadow/45876.tmp.11998	Sun Jul 13 07:50:23 2003
@@ -1,12 +1,12 @@
 Bug#: 45876
 Product: Mono/MCS
 Version: unspecified
 OS: unknown
 OS Details: Windows XP SP1
-Status: NEEDINFO   
+Status: REOPENED   
 Resolution: 
 Severity: Unknown
 Priority: Normal
 Component: Misc
 AssignedTo: ravi@ximian.com                            
 ReportedBy: jc@manoli.net               
@@ -92,6 +92,24 @@
 'EditorBrowsable' (are you missing a using directive or an assembly
 reference ?)
 Compilation failed: 2 error(s), 0 warnings
 
 Please provide a complete sample and also the compiler flags needed to
 compile it.
+
+------- Additional Comments From jc@manoli.net  2003-07-13 07:50 -------
+Save the following code in a .cs file and compile it with 
+"mcs -t:library *.cs":
+
+using System.ComponentModel
+namespace NDoc.Test.EditorBrowsableAttr
+{
+    public class BrowsableClass
+    {
+        [EditorBrowsable(EditorBrowsableState.Always)]
+        public static BrowsableClass operator ++(BrowsableClass a) 
+        { 
+            return null; 
+        }
+    }
+}
+