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
[runtime] Avoid holding the init lock while calling the cctor in mono_runtime_class_i...
[mono-project.git]
/
mcs
/
tests
/
test-anon-08.cs
blob
f7464c4d05870fc5b60271c5737fb98889ecfaac
1
//
2
// Tests assignment of a captured variable to another
3
// Do not add anything else to this test.
4
//
5
delegate void
S
();
6
7
class
X
{
8
9
//
10
// DO NOT ADD ANYTHING ELSE TO THIS TEST
11
//
12
public static int
Main
()
13
{
14
int
a
=
2
;
15
int
b
=
1
;
16
S d
=
delegate
{
17
a
=
b
;
18
};
19
20
return
0
;
21
}
22
}