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-09-02 Jb Evain <jbevain@novell.com>
[mcs.git]
/
errors
/
cs0205-2.cs
blob
788ee1011201cd133aca610ac4334e8ef9c6c778
1
// cs0205-2.cs: Cannot call an abstract base member `A.Foobar'
2
// Line: 15
3
4
using
System
;
5
6
public abstract class
A
7
{
8
public abstract int
Foobar { get; }
9
}
10
11
public class
B
:
A
12
{
13
public override int
Foobar
{
14
get
{
15
return base
.
Foobar
;
16
}
17
}
18
19
static void
Main
()
20
{
21
B b
=
new
B
();
22
if
(
b
.
Foobar
==
1
)
23
;
24
}
25
}
26