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
In ilasm/tests:
[mcs.git]
/
tests
/
test-anon-24.cs
blob
8b7169478281189cc5257b3424869c0fc903c83d
1
using
System
;
2
3
delegate int
D
();
4
5
class
X
{
6
7
static void
Main
()
8
{
9
D x
=
T
(
1
);
10
11
Console
.
WriteLine
(
"Should be 2=
{0}
"
,
x
());
12
}
13
14
static
D
T
(
int
a
)
15
{
16
D d
=
delegate
{
17
a
=
a
+
1
;
18
return
a
;
19
};
20
21
return
d
;
22
}
23
}