[Mono-devel-list] Possible bug in mono C# compiler
Ben Maurer
bmaurer at users.sourceforge.net
Sun Apr 25 15:00:08 EDT 2004
Hello,
There is a bug on this in bugzilla, i filed it a while ago.
bdm
On Sun, 2004-04-25 at 13:42, Sanjay Gupta wrote:
> Hi List,
> I have mcs compiler version 0.31.99.0.
> I have a private constructor in base class and in derived class
> the private constructor just calls the base class constructor.
> For Ex:
>
> public abstract class class1 : ISerializable
> {
> private class1(SerializationInfo info, StreamingContext
> context)
> {
> //do something
> }
>
> //more methods
> }
>
>
> public sealed class class2 : class1
> {
> private class2(SerializationInfo info, StreamingContext
> context) : base(info, context)
> {
> }
> //more methods
> }
>
> The above code compiles with mcs but fails on MS .Net giving Compiler
> Error CS0122.
> Is this a bug???
>
> Regards,
> Sanjay
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
More information about the Mono-devel-list
mailing list