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
retag
[mcs.git]
/
errors
/
cs0407-2.cs
blob
eed9021a44af5603f3f76c8c57560c93d4d3c612
1
// CS0407: A method or delegate `int X.f(int)' return type does not match delegate `object X.Function(int)' return type
2
// Line: 17
3
4
using
System
;
5
6
class
X
7
{
8
public delegate object
Function
(
int
arg1
);
9
10
static void
Main
()
11
{
12
Delegate d
=
new
Function
(
f
);
13
}
14
15
static int
f
(
int
a
)
16
{
17
return
1
;
18
}
19
}