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-25.cs
blob
ac399d804d2759fae15e3d2485db505619d22630
1
using
System
;
2
3
delegate int
D
(
int
arg
);
4
5
class
X
{
6
7
public static int
Main
()
8
{
9
D x
=
T
(
1
);
10
11
int
v
=
x
(
10
);
12
Console
.
WriteLine
(
"Should be 11=
{0}
"
,
v
);
13
return
v
==
11
?
0
:
1
;
14
}
15
16
static
D
T
(
int
a
)
17
{
18
D d
=
delegate
(
int
arg
) {
19
return
arg
+
a
;
20
};
21
22
return
d
;
23
}
24
}