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

47
mcs/tests/dtest-027.cs Normal file
View File

@@ -0,0 +1,47 @@
class C
{
public int M (object d, long s)
{
return 1;
}
public int M (long s, object d)
{
return 2;
}
public int M (dynamic d, dynamic s)
{
return 3;
}
public int M2 (object d)
{
return 1;
}
public int M2 (byte s)
{
return 2;
}
}
public class Test
{
public static int Main ()
{
dynamic d = new C ();
byte s = 5;
object o = 2;
int v = d.M (s, o);
if (v != 2)
return 1;
v = d.M2 (1 + 3);
if (v != 2)
return 2;
return 0;
}
}