Switch to compiler-tester
[mono.git] / mcs / tests / gtest-085.cs
1 using System;
2
3 public interface IFoo<S>
4 { }
5
6 public class ArrayList<T>
7 {
8         public virtual int InsertAll (IFoo<T> foo)
9         {
10                 return 0;
11         }
12
13         public virtual int InsertAll<U> (IFoo<U> foo)
14                 where U : T
15         {
16                 return 1;
17         }
18
19         public virtual int AddAll (IFoo<T> foo)
20         {
21                 return InsertAll (foo);
22         }
23 }
24
25 class X
26 {
27         static int Main ()
28         {
29                 ArrayList<int> list = new ArrayList<int> ();
30                 return list.AddAll (null);
31         }
32 }