2009-02-15 Jonathan Chambers <joncham@gmail.com>
[mcs.git] / tests / test-103.cs
blob09974f4cc2963dad37bb3494bf958b5de4264954
1 //
2 // We should also allow overrides to work on protected methods.
3 // Only private is not considered part of the override process.
4 //
5 abstract class A {
6 protected abstract int Foo ();
9 class B : A {
10 protected override int Foo ()
12 return 0;
15 public int M ()
17 return Foo ();
21 class Test {
22 public static int Main ()
24 return new B ().M ();