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
"disable_omit_fp" can now be included in MONO_DEBUG
[mono-project.git]
/
mcs
/
tests
/
dtest-collectioninit-01.cs
blob
2816af20e7622e728099a75501c0ed4d2017ca2c
1
using
System
;
2
using
System
.
Collections
;
3
using
System
.
Collections
.
Generic
;
4
5
public class
Test
6
{
7
class
Wrap
8
{
9
List
<
short
>
numbers
=
new
List
<
short
> ();
10
11
public dynamic
Numbers
{
12
get
{
13
return
numbers
;
14
}
15
}
16
}
17
18
public static int
Main
()
19
{
20
var
a
=
new
Wrap
() {
21
Numbers
=
{ 3, 9 }
22
};
23
24
if
(
a
.
Numbers
[
1
] !=
9
)
25
return
1
;
26
27
Console
.
WriteLine
(
"OK"
);
28
return
0
;
29
}
30
}
31