summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0029-30.cs
blob: 4cf7d6cd7a3aa7a0d47a97d44b58a27f9baef74e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// CS0029: Cannot implicitly convert type `U' to `int'
// Line: 13

abstract class A<T>
{
	public abstract void Foo<U> (U arg) where U : T;
}

class B : A<int>
{
	public override void Foo<U> (U arg)
	{
		int i = arg;
	}
}