Initial set of Ward sgen annotations (#5705)
[mono.git] / mcs / tests / test-86.cs
1 using System;
2
3 namespace T {
4         public class T {
5                 
6                 static int method1 (Type t, int val)
7                 {
8                         Console.WriteLine ("You passed in " + val);
9                         return 1;
10                 }
11
12                 static int method1 (Type t, Type[] types)
13                 {
14                         Console.WriteLine ("Wrong method called !");
15                         return 2;
16                 }
17
18                 static int method2 (Type t, int val)
19                 {
20                         Console.WriteLine ("MEthod2 : " + val);
21                         return 3;
22                 }
23
24                 static int method2 (Type t, Type [] types)
25                 {
26                         Console.WriteLine ("Correct one this time!");
27                         return 4;
28                 }
29                 
30                 public static int Main()
31                 {
32                         int i = method1 (null, 1);
33
34                         if (i != 1)
35                                 return 1;
36                         
37                         i = method2 (null, null);
38                         
39                         if (i != 4)
40                                 return 1;
41                         
42                         return 0;
43                 }
44         }
45 }