[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git] / mcs / tests / gtest-085.cs
blob76f0767a124377430b109c5672badbb346d37797
1 using System;
3 public interface IFoo<S>
4 { }
6 public class ArrayList<T>
8 public virtual int InsertAll (IFoo<T> foo)
10 return 0;
13 public virtual int InsertAll<U> (IFoo<U> foo)
14 where U : T
16 return 1;
19 public virtual int AddAll (IFoo<T> foo)
21 return InsertAll (foo);
25 class X
27 public static int Main ()
29 ArrayList<int> list = new ArrayList<int> ();
30 return list.AddAll (null);