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
Merge pull request #4202 from marek-safar/compression
[mono-project.git]
/
mcs
/
tests
/
gtest-399.cs
blob
e6e0895862683235175866c22b31df1776680890
1
using
System
;
2
using
System
.
Collections
.
Generic
;
3
4
namespace
TestIssue
5
{
6
class
Base
7
{
8
}
9
10
class
Derived
:
Base
11
{
12
}
13
14
class
Program
15
{
16
public static int
Main
()
17
{
18
try
{
19
IEnumerable
<
Derived
>
e1
= (
IEnumerable
<
Derived
>) (
new
Base
[]
{ }
);
20
return
1
;
21
}
22
catch
(
InvalidCastException
)
23
{
24
return
0
;
25
}
26
}
27
}
28
}