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

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

public class Test
{
	static void Bla<T, U> () where T : class, U
	{
		T[] ta = new T[0];
		IEnumerable<T> ita = ta;
		IEnumerable<U> itu = ita;
	}

	public static void Main ()
	{
		Bla<string, object> ();
	}
}