[Mono-devel-list] Possible bug in mono C# compiler
Sanjay Gupta
GSanjay at novell.com
Sun Apr 25 13:42:17 EDT 2004
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
More information about the Mono-devel-list
mailing list