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
(DISTFILES): Comment out a few missing files.
[mono-project.git]
/
mcs
/
tests
/
a-parameter2.cs
blob
79ba3c765a93951dd1dc9742a9056687ece0586d
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}
"
,
x
);
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
}