Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gtest-399.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 584cb5adae749d887b890647050d65695c135f9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System;
using System.Collections.Generic;

namespace TestIssue
{
	class Base
	{
	}

	class Derived : Base
	{
	}

	class Program
	{
		static int Main ()
		{
			try {
				IEnumerable<Derived> e1 = (IEnumerable<Derived>) (new Base [] { });
				return 1;
			}
			catch (InvalidCastException)
			{
				return 0;
			}
		}
	}
}