Merge pull request #4202 from marek-safar/compression
[mono-project.git] / mcs / tests / gtest-399.cs
blobe6e0895862683235175866c22b31df1776680890
1 using System;
2 using System.Collections.Generic;
4 namespace TestIssue
6 class Base
10 class Derived : Base
14 class Program
16 public static int Main ()
18 try {
19 IEnumerable<Derived> e1 = (IEnumerable<Derived>) (new Base [] { });
20 return 1;
22 catch (InvalidCastException)
24 return 0;