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

35 lines
417 B
C#

// CS0239: `X.MyMethod()': cannot override inherited member `Bar.MyMethod()' because it is sealed
// Line : 25
using System;
public class Foo {
public virtual void MyMethod ()
{
Console.WriteLine ("This is me !");
}
}
public class Bar : Foo {
public sealed override void MyMethod ()
{
}
}
public class X : Bar {
public override void MyMethod ()
{
}
public static void Main ()
{
}
}