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
[tuner] handle the case with multiple "preserve" attributes
[mono-project.git]
/
mcs
/
tests
/
test-anon-22.cs
blob
42ec9111c28316fb9f852f79ed972f087e81bf9a
1
//
2
using
System
;
3
4
delegate void
D
();
5
6
class
X
{
7
static
D r
;
8
9
public 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
}