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
* ResolvedReference.cs (.ctor): Set 'OriginalItemSpec' and 'ResolvedFrom',
[mcs.git]
/
tests
/
test-anon-22.cs
blob
b697da3bf836c21ab83dd37749cd9e8707424e0d
1
//
2
using
System
;
3
4
delegate void
D
();
5
6
class
X
{
7
static
D r
;
8
9
static void
Main
()
10
{
11
D d
=
T
();
12
13
d
();
14
r
();
15
r
();
16
}
17
18
static
D
T
()
19
{
20
int
var1
=
0
;
21
22
D d
=
delegate
() {
23
int
var2
=
1
;
24
25
r
=
delegate
{
26
Console
.
WriteLine
(
"var1:
{0}
var2:
{1}
"
,
var1
,
var2
);
27
var2
=
var2
+
1
;
28
};
29
30
var1
=
var1
+
1
;
31
};
32
33
return
d
;
34
}
35
}