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

43
mcs/tests/test-804.cs Normal file
View File

@@ -0,0 +1,43 @@
using System;
interface IA
{
int Foo { get; }
}
interface IB_1 : IA
{
new string Foo { get; }
}
interface IB_2 : IA
{
new char Foo { get; }
}
interface IC : IB_2, IB_1
{
new byte Foo { get; }
}
class A : IA
{
public int Foo { get { return 3; } }
}
class B : A, IB_1
{
public new string Foo { get { return "1"; } }
}
class C : B, IC
{
char IB_2.Foo { get { return 'a'; } }
public new byte Foo { get { return 2; } }
public static void Main ()
{
new C ();
}
}