repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2009-02-15 Jonathan Chambers <joncham@gmail.com>
[mcs.git]
/
tests
/
test-103.cs
blob
09974f4cc2963dad37bb3494bf958b5de4264954
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