projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2006-04-26 Atsushi Enomoto <atsushi@ximian.com>
[mono.git]
/
mcs
/
tests
/
test-anon-13.cs
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
}