New test.
[mono.git] / mcs / tests / test-86.cs
index ba25bd543404498df64e467b4b162b8e0842f2f3..faf1ae20a18d92b9dfa321dcb995662b33a1a608 100644 (file)
@@ -14,15 +14,32 @@ namespace T {
                        Console.WriteLine ("Wrong method called !");
                        return 2;
                }
+
+               static int method2 (Type t, int val)
+               {
+                       Console.WriteLine ("MEthod2 : " + val);
+                       return 3;
+               }
+
+               static int method2 (Type t, Type [] types)
+               {
+                       Console.WriteLine ("Correct one this time!");
+                       return 4;
+               }
                
                public static int Main()
                {
                        int i = method1 (null, 1);
 
-                       if (i == 1)
-                               return 0;
-                       else
+                       if (i != 1)
+                               return 1;
+                       
+                       i = method2 (null, null);
+                       
+                       if (i != 4)
                                return 1;
+                       
+                       return 0;
                }
        }
 }