summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0266-26.cs
blob: 2c8df06f03d3ecd52e5b3bca5f5f84d020f79c68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// CS0266: Cannot implicitly convert type `System.Collections.Generic.IEnumerable<T>' to `System.Collections.Generic.IEnumerable<U>'. An explicit conversion exists (are you missing a cast?)
// Line: 12

using System;
using System.Collections.Generic;

public class Test
{
	static void Bla<T, U> () where T : U
	{
		IEnumerable<T> ita = null;
		IEnumerable<U> itu = ita;
	}
}