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-102.cs
blob
577d299fe087952f2d80f425adb843b141689d4f
1
using
System
;
2
3
public delegate void
Simple
();
4
5
public delegate
Simple
Foo
();
6
7
class
X
8
{
9
public void
Hello
<
U
> (
U u
)
10
{ }
11
12
public void
Test
<
T
> (
T t
)
13
{
14
T u
=
t
;
15
Hello
(
u
);
16
Foo foo
=
delegate
{
17
T v
=
u
;
18
Hello
(
u
);
19
return delegate
{
20
Hello
(
u
);
21
Hello
(
v
);
22
};
23
};
24
Simple simple
=
foo
();
25
simple
();
26
Hello
(
u
);
27
}
28
29
public static void
Main
()
30
{
31
X x
=
new
X
();
32
x
.
Test
(
3
);
33
}
34
}