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-11-20 Marek Safar <marek.safar@gmail.com>
[mcs.git]
/
errors
/
cs0112.cs
blob
e100d9c43d98dd8a55fa212af106a9007d95d676
1
// cs0112.cs: A static member `X.Bar.Add(int, int)' cannot be marked as override, virtual or abstract
2
// Line: 13
3
4
namespace
X
5
{
6
public abstract class
Foo
7
{
8
public abstract int
Add
(
int
a
,
int
b
);
9
}
10
11
public class
Bar
:
Foo
12
{
13
virtual public static int
Add
(
int
a
,
int
b
)
14
{
15
int
c
;
16
c
=
a
+
b
;
17
return
c
;
18
}
19
20
static int
Main
()
21
{
22
return
a
;
23
}
24
}
25
}