[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
Tue Dec 13 10:13:13 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-12-08 10:34:39.000000000 -0500
+++ shadow/76849.tmp.29372 2005-12-13 10:13:13.000000000 -0500
@@ -330,6 +330,40 @@
public static int poll (Pollfd [] fds, uint nfds, int timeout)
Note that both of these declarations are in classes marked
[Obsolete("message", true)], so they should compile.
+
+------- Additional Comments From jonpryor at vt.edu 2005-12-13 10:13 -------
+Here's a test case. The following compiles under mcs but fails under
+gmcs:
+
+ using System;
+ using System.Runtime.InteropServices;
+
+ [Obsolete ("Use Native.SignalHandler", true)]
+ public delegate void SignalHandler (int signal);
+
+ [Obsolete ("Use Native.Stdlib", true)]
+ public class Stdlib {
+ private static readonly SignalHandler[] registered_signals;
+ }
+
+ [Obsolete ("Use Native.Pollfd", true)]
+ public struct Pollfd {
+ }
+
+ [Obsolete ("Use Native.Syscall", true)]
+ public class Syscall : Stdlib {
+ public static int poll (Pollfd [] fds, uint nfds, int timeout)
+ {
+ return -1;
+ }
+ }
+
+ class Test {
+ public static void Main ()
+ {
+ }
+ }
+
More information about the mono-bugs
mailing list