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-07-16 Jb Evain <jbevain@novell.com>
[mcs.git]
/
tests
/
test-anon-25.cs
blob
7aafe7f7bdbf3ddeb8594c42ddad2b9af9a1dde5
1
using
System
;
2
3
delegate int
D
(
int
arg
);
4
5
class
X
{
6
7
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
}