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

gcs0425-2.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f305366175c58d723f0285a9ba69372082e775cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// CS0425: The constraints for type parameter `V' of method `Foo`1.Test()' must match the constraints for type parameter `U' of interface method `IFoo`1.Test()'.  Consider using an explicit interface implementation instead
// Line: 13
interface IFoo<T>
{
	void Test<U> ()
		where U : T;
}

class Foo<T> : IFoo<T>
{
	public void Test<V> ()
		where V :X
	{ }
}

class X
{
	static void Main ()
	{ }
}