projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git]
/
mcs
/
tests
/
gtest-399.cs
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
}