repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Remove extra CWL.
[mono-project.git]
/
mcs
/
errors
/
cs1593.cs
blob
7dab4815b5c23ad5d2a1916c7a2e3d1ee92912f2
1
// cs1593.cs: Delegate `Blah.MyDelegate' does not take `1' arguments
2
// Line : 21
3
4
using
System
;
5
6
public class
Blah
{
7
8
public delegate int
MyDelegate
(
int
i
,
int
j
);
9
10
public int
Foo
(
int
i
,
int
j
)
11
{
12
return
i
+
j
;
13
}
14
15
public static int
Main
()
16
{
17
Blah i
=
new
Blah
();
18
19
MyDelegate del
=
new
MyDelegate
(
i
.
Foo
);
20
21
int
number
=
del
(
2
);
22
23
if
(
number
==
5
)
24
return
0
;
25
else
26
return
1
;
27
28
}
29
30
}