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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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 () + { + } + } + _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
