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
/
dtest-031.cs
blob
afce420ff00d584bd906bf7f6a75093403036301
1
using
System
;
2
3
public class
A
<
T
>
4
{
5
public
U CustomDelegate
<
U
>(
out
U u
)
6
{
7
u
=
default
(
U
);
8
return default
(
U
);
9
}
10
}
11
12
public class
Test
13
{
14
public static int
Main
()
15
{
16
Foo
<
int
> ();
17
return
0
;
18
}
19
20
static void
Foo
<
Z
> ()
21
{
22
dynamic
a
=
new
A
<
Z
>();
23
Z z
;
24
a
.
CustomDelegate
(
out
z
);
25
}
26
}