2010-06-03 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / test-86.cs
blobfaf1ae20a18d92b9dfa321dcb995662b33a1a608
1 using System;
3 namespace T {
4 public class T {
6 static int method1 (Type t, int val)
8 Console.WriteLine ("You passed in " + val);
9 return 1;
12 static int method1 (Type t, Type[] types)
14 Console.WriteLine ("Wrong method called !");
15 return 2;
18 static int method2 (Type t, int val)
20 Console.WriteLine ("MEthod2 : " + val);
21 return 3;
24 static int method2 (Type t, Type [] types)
26 Console.WriteLine ("Correct one this time!");
27 return 4;
30 public static int Main()
32 int i = method1 (null, 1);
34 if (i != 1)
35 return 1;
37 i = method2 (null, null);
39 if (i != 4)
40 return 1;
42 return 0;