[Mono-bugs] [Bug 61902][Nor] Changed - Invalid warning CS0618 when invoking obsolete ctor from other ctor

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 8 Aug 2004 12:41:06 -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 marek.safar@seznam.cz.


--- shadow/61902	2004-08-08 08:02:52.000000000 -0400
+++ shadow/61902.tmp.18349	2004-08-08 12:41:06.000000000 -0400
@@ -37,6 +37,13 @@
 test.cs(5) warning CS0618: 'Test.Test(string, bool)' is 
 obsolete: 'doesn't matter'
 Compilation succeeded - 1 warning(s)
 Compiling the same code using csc does not report any warnings.
+------- Additional Comments From marek.safar@seznam.cz  2004-08-08 12:41 -------
+I think it's Microsoft bug. C# spec says:
+If a program uses a type or member that is decorated with the Obsolete
+attribute, then the compiler shall issue a warning or error in order
+to alert the developer, so the offending code can be fixed.