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
[corlib] Add a special method for XI so the linker does not always have to generate it.
[mono-project.git]
/
mcs
/
tests
/
test-anon-53.cs
blob
d5eafc9dfe0ffd814bc6565b32a02825ff9a2064
1
using
System
;
2
3
public delegate void
Foo
();
4
5
class
Test
6
{
7
public
Test
(
int
a
)
8
{
9
Foo foo
=
delegate
{
10
Console
.
WriteLine
(
a
);
11
};
12
foo
();
13
}
14
15
static
Test
()
16
{
17
int
a
=
5
;
18
Foo foo
=
delegate
{
19
Console
.
WriteLine
(
a
);
20
};
21
foo
();
22
}
23
}
24
25
class
X
26
{
27
public static void
Main
()
28
{
29
Test test
=
new
Test
(
9
);
30
Console
.
WriteLine
(
test
);
31
}
32
}