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-03-11 Zoltan Varga <vargaz@gmail.com>
[mcs.git]
/
tests
/
test-anon-44.cs
blob
8963a063715989f34a2deb3e1083bd0be2f5a076
1
using
System
;
2
3
delegate void
Simple
();
4
5
delegate
Simple
Foo
();
6
7
class
X
8
{
9
public void
Hello
(
long
k
)
10
{ }
11
12
public void
Test
(
int
i
)
13
{
14
Hello
(
3
);
15
Foo foo
=
delegate
{
16
int
a
=
i
;
17
Hello
(
4
);
18
return delegate
{
19
int
b
=
a
;
20
Hello
(
5
);
21
};
22
};
23
Foo bar
=
delegate
{
24
int
c
=
i
;
25
Hello
(
6
);
26
return delegate
{
27
int
d
=
i
;
28
Hello
(
7
);
29
};
30
};
31
Simple simple
=
foo
();
32
simple
();
33
}
34
35
static void
Main
()
36
{
37
X x
=
new
X
();
38
x
.
Test
(
3
);
39
}
40
}