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-165.cs
blob
1355207e7ab686bc6ddb96bae5efa7acd7feb59a
1
using
System
;
2
3
interface
IA
4
{
5
}
6
7
class
C
:
IA
8
{
9
void
Foo
<
T
> ()
where T
:
class
,
IA
10
{
11
Func
<
T
,
T
>
m
=
l
=> {
12
T i
=
default
(
T
);
13
if
(
l
==
i
) {
14
Func
<
T
>
m2
= () =>
i
;
15
m2
();
16
}
17
18
return
i
;
19
};
20
21
m
(
null
);
22
}
23
24
public static int
Main
()
25
{
26
var
c
=
new
C
();
27
c
.
Foo
<
C
> ();
28
return
0
;
29
}
30
}