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

gcs0029.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f4812f54904afd98c905394a2020cd7645ba8cea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// CS0029: Cannot convert implicitly from `Bar`1' to `Foo`1'
// Line: 15
class Foo<T>
{
}

class Bar<T> : Foo<T>
{
}

class X
{
	static void Main ()
	{
		Foo<int> foo = new Bar<long> ();
	}
}