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-04-24 Miguel de Icaza <miguel@novell.com>
[mcs.git]
/
tests
/
test-anon-23.cs
blob
8fcb6d4bc5be6c64467872b315512b6cc84fd3bd
1
using
System
;
2
3
delegate void
D
();
4
5
class
X
{
6
7
static int
Main
()
8
{
9
X x
=
new
X
();
10
x
.
M
();
11
e
();
12
Console
.
WriteLine
(
"J should be 101=
{0}
"
,
j
);
13
if
(
j
!=
101
)
14
return
3
;
15
Console
.
WriteLine
(
"OK"
);
16
return
0
;
17
}
18
19
static int
j
;
20
static
D e
;
21
22
void
M
()
23
{
24
int
l
=
100
;
25
26
D d
=
delegate
{
27
int
b
;
28
b
=
1
;
29
e
=
delegate
{
30
j
=
l
+
b
;
31
};
32
};
33
d
();
34
}
35
36
}