repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
remove NotWorking
[mcs.git]
/
tests
/
gtest-399.cs
blob
584cb5adae749d887b890647050d65695c135f9e
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
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
}