Fix all CreateInstance overloads for void
[mcs.git] / tests / test-602.cs
blob1f96fe114c6793657ff990388963631179c23484
1 using System;
3 public class C
5 public static int Main ()
7 int s = Error ("{0} - {0}", "a");
8 Console.WriteLine (s);
10 if (s != 2)
11 return 1;
13 s = Test_A ("aaaa");
14 if (s != 1)
15 return 2;
17 s = Test_C (typeof (C), null, null);
18 Console.WriteLine (s);
19 if (s != 2)
20 return 3;
22 return 0;
25 static public int Error (string format, params object[] args)
27 return Format (format, args);
30 static int Format (string s, object o)
32 return 1;
35 static int Format (string s, params object[] o)
37 return 2;
40 static int Format (string s, object o, params object[] o2)
42 return 3;
45 static int Test_A (string s)
47 return 1;
50 static int Test_A (string s, params object[] o)
52 return 2;
55 static int Test_C (Type t, params int[] a)
57 return 1;
60 static int Test_C (Type t, int[] a, int[] b)
62 return 2;