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

cs0738-3.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b056527cde5b96de56cce53d8e645fd698e3afbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// CS738: `CB' does not implement interface member `IG<IA>.Method()' and the best implementing candidate `CA<IB>.Method()' return type `IB' does not match interface member return type `IA'
// Line: 29

public interface IA
{
}

public interface IB : IA
{
}

public interface IG<out U>
{
	U Method ();
}

public interface IDerived : IG<IA>
{
}

public abstract class CA<T> : IG<T>
{
	public T Method ()
	{
		return default (T);
	}
}

public class CB : CA<IB>, IG<IA>
{
}