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
add comment
[mcs.git]
/
tests
/
test-anon-13.cs
blob
e90e976b4768e0d4416616c4e886380c76eb862d
1
using
System
;
2
3
delegate void
D
();
4
5
class
X
{
6
static void
Main
()
7
{
8
X x
=
new
X
(
1
);
9
X y
=
new
X
(
100
);
10
D a
=
x
.
T
();
11
D b
=
y
.
T
();
12
13
a
();
14
b
();
15
}
16
17
X
(
int
start
)
18
{
19
ins
=
start
;
20
}
21
22
int
ins
;
23
24
D
T
()
25
{
26
D d
=
delegate
() {
27
Console
.
WriteLine
(
"My state is: "
+
CALL
());
28
};
29
30
return
d
;
31
}
32
string
CALL
()
33
{
34
return
"GOOD"
;
35
}
36
37
}