Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

54 lines
537 B
C#

namespace Foo
{
public class Hello
{
public static int World = 8;
}
}
namespace Bar
{
public class Hello
{
public static int World = 9;
}
}
namespace Test
{
using Foo;
public class Test1
{
public static int World ()
{
return Hello.World;
}
}
}
namespace Test
{
using Bar;
public class Test2
{
public static int World ()
{
return Hello.World;
}
}
}
class X
{
public static int Main ()
{
if (Test.Test1.World () != 8)
return 1;
if (Test.Test2.World () != 9)
return 2;
return 0;
}
}