[Mono-bugs] [Bug 48598][Blo] New - ConditionalAttribute should have AllowMultiple=true

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 18 Sep 2003 09:00:15 -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 sebastien.lambla@cubiks.com.

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

--- shadow/48598	2003-09-18 09:00:15.000000000 -0400
+++ shadow/48598.tmp.16366	2003-09-18 09:00:15.000000000 -0400
@@ -0,0 +1,60 @@
+Bug#: 48598
+Product: Mono/Class Libraries
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 001 One hour
+Priority: Blocker
+Component: System
+AssignedTo: ravi@ximian.com                            
+ReportedBy: sebastien.lambla@cubiks.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: ConditionalAttribute should have AllowMultiple=true
+
+Please fill in this template when reporting a bug, unless you know what 
+you are doing.
+Description of Problem:
+> In ConditionalAttribute.cs,
+> 
+> [AttributeUsage(AttributeTargets.Method)]
+> 
+> Should be
+> 
+> [AttributeUsage(AttributeTargets.Method,AllowMultiple=true)]
+
+Reproduce the problem:
+> #define DEBUG
+> #define TRACE
+> public class Test
+> {
+> 	public static void Main(string args[])
+> 	{
+> 		WriteMe();
+> 	}
+> 	
+> 	[Conditional("DEBUG"),Conditional("TRACE")]
+> 	public static void WriteMe()
+> 	{
+> 		Console.WriteLine("This is me");
+> 	}
+> }
+
+
+Actual Results:
+Refuses to compile
+
+Expected Results:
+Should compile, may ignore.
+
+How often does this happen? 
+Al the time
+
+Additional Information:
+Bug in Microsoft documentation, or difference between implementations and 
+ECMA spec... The MS version does have AllowMultiple=true on the 
+commercial version.