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
update readme (#21797)
[mono-project.git]
/
mcs
/
tests
/
test-dictinit-03.cs
blob
6b44ec030ddb20df61d30d8ad6ca7302b39a1be1
1
using
System
;
2
3
class
C
4
{
5
int
[,]
a
=
new int
[
2
,
3
];
6
7
static int
Main
()
8
{
9
var
res
=
new
C { a = { [1, 1] = 11, [0, 2] = 2}
};
10
if
(
res
.
a
[
1
,
1
] !=
11
)
11
return
1
;
12
13
if
(
res
.
a
[
1
,
2
] !=
0
)
14
return
2
;
15
16
if
(
res
.
a
[
0
,
2
] !=
2
)
17
return
3
;
18
19
Console
.
WriteLine
(
"ok"
);
20
return
0
;
21
}
22
}