[w32file] Move MonoIO.Find{First,Next,Close} to managed
[mono.git] / mcs / errors / cs1956.cs
1 // CS1956: The interface method `I<string>.M(out string)' implementation is ambiguous between following methods: `A<string,string>.M(out string)' and `A<string,string>.M(ref string)' in type `Test'
2 // Line: 17
3 // Compiler options: -warnaserror
4
5 interface I<T>
6 {
7         void M (out T x);
8 }
9
10 class A<T, U>
11 {
12         public virtual void M (out T t)
13         {
14                 t = default (T);
15         }
16
17         public virtual void M (ref U u)
18         {
19         }
20 }
21
22 class Test : A<string, string>, I<string>
23 {
24         static void Main ()
25         {
26                 I<string> x = new Test ();
27                 string s;
28                 x.M (out y);
29         }
30 }