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-256.cs
blob
17e7d9c478a542899f7c584c1b4c96b1399fa734
1
using
System
;
2
3
[
AttributeUsage
(
AttributeTargets
.
Property
,
AllowMultiple
=
false
,
4
Inherited
=
true
)]
5
public class
TableColumn
:
Attribute
6
{
7
public object
MagicValue
8
{
9
get
{ return null; }
10
set
{ }
11
}
12
13
public object
Value2
;
14
}
15
16
class
Bug
17
{
18
[
TableColumn
(
MagicValue
=
2
,
Value2
=
0
)]
19
public int
TInt
20
{
21
get
{ return 0; }
22
}
23
24
public static void
Main
()
25
{
26
const object
o
=
null
;
27
}
28
29
}