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
Merge pull request #1861 from saper/home-override
[mono-project.git]
/
mcs
/
tests
/
test-anon-78.cs
blob
9f8b8e47cd7202e49d26a53e94a9993432239b29
1
using
System
;
2
3
delegate void
D1
();
4
delegate void
D2
();
5
6
public class
DelegateTest
{
7
static void
Foo
(
D1 d
)
8
{
9
d
();
10
}
11
12
static void
Foo
(
D2 d
)
13
{
14
}
15
16
static int
counter
=
99
;
17
public static int
Main
()
18
{
19
Foo
(
new
D1
(
delegate
{
20
counter
=
82
;
21
Console
.
WriteLine
(
"In"
);
22
}));
23
24
if
(
counter
!=
82
)
25
return
1
;
26
27
return
0
;
28
}
29
}
30
31