[Mono-bugs] [Bug 76849][Wis] Changed - Can't compile assembly that
uses [Obsolete(IsError=true)]-marked types
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Nov 30 13:22:45 EST 2005
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 jonpryor at vt.edu.
http://bugzilla.ximian.com/show_bug.cgi?id=76849
--- shadow/76849 2005-11-30 10:32:25.000000000 -0500
+++ shadow/76849.tmp.20832 2005-11-30 13:22:45.000000000 -0500
@@ -1,13 +1,13 @@
Bug#: 76849
Product: Mono: Compilers
Version: 1.1
OS: other
OS Details:
-Status: RESOLVED
-Resolution: FIXED
+Status: REOPENED
+Resolution:
Severity: Unknown
Priority: Wishlist
Component: C#
AssignedTo: marek.safar at seznam.cz
ReportedBy: jonpryor at vt.edu
QAContact: mono-bugs at ximian.com
@@ -71,6 +71,33 @@
Microsoft CSC.EXE v1.1 compiles the above code without error.
------- Additional Comments From marek.safar at seznam.cz 2005-11-30 10:32 -------
Please update to the latest [g]mcs version. The issue was already
fixed some time ago.
+
+------- Additional Comments From jonpryor at vt.edu 2005-11-30 13:22 -------
+Here's a better test case which fails with the current mcs and still
+works with Microsoft CSC.EXE:
+
+ using System;
+
+ [Obsolete ("Use Errno", true)]
+ public enum Error {
+ EROFS,
+ ERANGE
+ }
+
+ public sealed class UnixMarshal {
+ [Obsolete ("Use Errno", true)]
+ public static string GetDescription (Error e)
+ {
+ return null;
+ }
+ }
+
+ class Test {
+ public static void Main ()
+ {
+ }
+ }
+
More information about the mono-bugs
mailing list