add ISafeSerializationData
[mcs.git] / tests / gtest-349.cs
blob68200850a22d3fb2982d382542d0fd295ca77ca6
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 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; }