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-815.cs
blob
3dbc1f8077c9dfb02ccde5f76bfd195835c9b16b
1
using
System
.
Runtime
.
CompilerServices
;
2
3
interface
IS
4
{
5
[
IndexerName
(
"Hello"
)]
6
int this
[
int
index
]
{ get; }
7
}
8
9
class
D
:
IS
10
{
11
[
IndexerName
(
"DUUU"
)]
12
public int this
[
int
index
] {
13
get
{
14
return
1
;
15
}
16
}
17
}
18
19
static class
X
20
{
21
public static int
Main
()
22
{
23
IS a
=
new
D
();
24
int
r
=
a
[
1
];
25
26
D d
=
new
D
();
27
r
=
d
[
2
];
28
29
return
0
;
30
}
31
}
32