[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git] / mcs / tests / gtest-349.cs
blob8d25d7fdca5a7eb6a4f923bfd4c80834dc5e7213
1 using System.Collections;
2 using System;
3 using System.Reflection;
5 class X
7 public delegate R Function<T1, T2, R>(T1 arg1, T2 arg2);
9 public static int Main ()
11 Delegate [] e = new Delegate [] {
12 new Function<IList,IList,int> (f2),
13 new Function<IList,object,int> (f2)
16 if ((int)e [0].DynamicInvoke (null, null) != 1)
17 return 1;
19 if ((int) e [1].DynamicInvoke (null, null) != 2)
20 return 2;
22 Console.WriteLine ("OK");
23 return 0;
26 static int f2 (IList self, IList other) { return 1; }
27 static int f2 (IList self, object other) {return 2; }