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

gtest-285.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c32e6e39a84428cb5ed5de9ed2997ae655991e58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using System;
using System.Collections.Generic;

public class A {
}

public class B : A {
}

public class Tests
{
	public static void Main ()
	{
		IList<A> a = new B [0];

		Console.WriteLine (typeof (IList<A>).IsAssignableFrom (typeof (B[])));
	}
}