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
[metadata] Fix leaks when handling a few attributes (#16675)
[mono-project.git]
/
mcs
/
tests
/
test-anon-03.cs
blob
5be25e62212cee438e764f460d2e9bef08aa8c9d
1
//
2
// Simple variable capturing
3
//
4
using
System
;
5
6
delegate void
S
();
7
8
class
X
{
9
public 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
}