Imported Upstream version 3.6.0

Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
This commit is contained in:
Jo Shields
2014-08-13 10:39:27 +01:00
commit a575963da9
50588 changed files with 8155799 additions and 0 deletions

45
mcs/tests/test-86.cs Normal file
View File

@@ -0,0 +1,45 @@
using System;
namespace T {
public class T {
static int method1 (Type t, int val)
{
Console.WriteLine ("You passed in " + val);
return 1;
}
static int method1 (Type t, Type[] types)
{
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 1;
i = method2 (null, null);
if (i != 4)
return 1;
return 0;
}
}
}