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
[2020-02] Avoid following invalid pointers in mono_w32process_get_modules on Darwin...
[mono-project.git]
/
mono
/
tests
/
generic-array-iface-set.2.cs
blob
3bcee183f56c72a55f905a3efdf69589bbd4f6db
1
using
System
;
2
using
System
.
Collections
.
Generic
;
3
4
class
A
{
5
static int
Main
()
6
{
7
A
[]
aa
=
new
A
[
1
];
8
IList
<
object
>
io
=
aa
;
9
try
{
10
io
[
0
] =
new object
();
11
A a
=
aa
[
0
];
12
Console
.
WriteLine
(
"
{0}
"
,
a
.
GetType
());
13
}
catch
(
ArrayTypeMismatchException
) {
14
return
0
;
15
}
16
return
1
;
17
18
}
19
}