Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

21 lines
399 B
C#

// CS0109: The member `Wrapper.DerivedClass.AnInt' does not hide an inherited member. The new keyword is not required
// Line: 18
// Compiler options: -warnaserror
public abstract class BaseClass
{
private static readonly int AnInt = 1;
public static void Main ()
{
}
}
public static class Wrapper
{
public class DerivedClass : BaseClass
{
private new static readonly int AnInt = 2;
}
}