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

55
mcs/tests/test-826.cs Normal file
View File

@@ -0,0 +1,55 @@
using System;
using System.Reflection;
public interface I
{
int Foo ();
}
public class A : I
{
int I.Foo ()
{
Console.WriteLine ("a");
return 1;
}
}
public class AA : A, I
{
public int Foo ()
{
Console.WriteLine ("aa");
return 2;
}
}
public class B : A
{
public int Foo ()
{
Console.WriteLine ("b");
return 3;
}
}
public class Test
{
public static int Main ()
{
I i = new AA ();
if (i.Foo () != 2)
return 1;
i = new B ();
if (i.Foo () != 1)
return 2;
var m = typeof (B).GetMethod ("Foo");
Console.WriteLine (m.Attributes);
if (m.Attributes != (MethodAttributes.Public | MethodAttributes.HideBySig))
return 3;
return 0;
}
}