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-06-26 Zoltan Varga <vargaz@gmail.com>
[mcs.git]
/
errors
/
cs1502-9.cs
blob
f52ea8cf8e4ec1f44fe636c99afc390070c9a17b
1
// CS1502: The best overloaded method match for `X.M(string)' has some invalid arguments
2
// Line: 23
3
4
delegate void
D1
(
object
o
);
5
delegate void
D2
();
6
7
class
C
8
{
9
public
C
(
D1 d
)
10
{
11
}
12
13
public
C
(
D2 d
)
14
{
15
}
16
}
17
18
class
X
19
{
20
void
Foo
()
21
{
22
new
C
(
delegate
(
object
state
) {
23
M
(
1
);
24
});
25
}
26
27
void
M
(
string
s
)
28
{
29
}
30
}
31