[corlib] Use temp directory for assemblies in SaveTest.Save() (#5727)
[mono.git] / mcs / errors / cs0738-3.cs
1 // 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'
2 // Line: 29
3
4 public interface IA
5 {
6 }
7
8 public interface IB : IA
9 {
10 }
11
12 public interface IG<out U>
13 {
14         U Method ();
15 }
16
17 public interface IDerived : IG<IA>
18 {
19 }
20
21 public abstract class CA<T> : IG<T>
22 {
23         public T Method ()
24         {
25                 return default (T);
26         }
27 }
28
29 public class CB : CA<IB>, IG<IA>
30 {
31 }