a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
29 lines
334 B
C#
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;
|
|
}
|
|
}
|
|
}
|
|
}
|