Imported Upstream version 4.0.0~alpha1

Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
This commit is contained in:
Jo Shields
2015-04-07 09:35:12 +01:00
parent 283343f570
commit 3c1f479b9d
22469 changed files with 2931443 additions and 869343 deletions

43
mcs/errors/cs0121-26.cs Normal file
View File

@@ -0,0 +1,43 @@
// CS0121: The call is ambiguous between the following methods or properties: `A.B.X.Test(this int)' and `A.C.X.Test(this int)'
// Line: 37
using System;
namespace A.B
{
static class X
{
public static int Test (this int o)
{
return 1;
}
}
}
namespace A.C
{
static class X
{
public static int Test (this int o)
{
return 2;
}
}
}
namespace C
{
using A.B;
using static A.C.X;
class M
{
public static int Main ()
{
if (1.Test () != 1)
return 1;
return 0;
}
}
}