[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / tests / test-103.cs
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 ();
7 }
8
9 class B : A {
10         protected override int Foo ()
11         {
12                 return 0;
13         }
14
15         public int M ()
16         {
17                 return Foo ();
18         }
19 }
20
21 class Test {
22         public static int Main ()
23         {
24                 return new B ().M ();
25         }
26 }
27
28