[Mono-bugs] [Bug 82489][Min] New - System.ObsoleteAttribute doesn't work on constructors

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Aug 19 14:59:39 EDT 2007


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 jan.oravec at 6com.sk.

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

--- shadow/82489	2007-08-19 14:59:39.000000000 -0400
+++ shadow/82489.tmp.6439	2007-08-19 14:59:39.000000000 -0400
@@ -0,0 +1,33 @@
+Bug#: 82489
+Product: Mono: Compilers
+Version: 1.2
+OS: 
+OS Details: mono-1.2.4 on amd64
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: jan.oravec at 6com.sk               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: System.ObsoleteAttribute doesn't work on constructors
+
+Compilation of the following code doesn't report any warnings, when
+obsolete constructor is used.
+
+class Foo
+{
+  [ System.Obsolete () ]
+  public Foo ()
+  {
+  }
+  
+  public static void Main ()
+  {
+    new Foo ();
+  }
+}


More information about the mono-bugs mailing list