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 failing test for bnc550722
[mcs.git]
/
tests
/
test-anon-03.cs
blob
c6f4032579b098d1c8043c50a9e2bda1dbc8baff
1
//
2
// Simple variable capturing
3
//
4
using
System
;
5
6
delegate void
S
();
7
8
class
X
{
9
static void
Main
()
10
{
11
int
a
=
1
;
12
S b
=
delegate
{
13
a
=
2
;
14
};
15
b
();
16
Console
.
WriteLine
(
"Back, got "
+
a
);
17
}
18
}