Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

29 lines
334 B
C#

using System;
using System.Collections.Generic;
namespace TestIssue
{
class Base
{
}
class Derived : Base
{
}
class Program
{
public static int Main ()
{
try {
IEnumerable<Derived> e1 = (IEnumerable<Derived>) (new Base [] { });
return 1;
}
catch (InvalidCastException)
{
return 0;
}
}
}
}