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

72
mcs/tests/test-785.cs Normal file
View File

@@ -0,0 +1,72 @@
// Compiler options: -warnaserror
abstract class Base
{
public abstract int Prop
{
get;
set;
}
public abstract int this[int i]
{
get;
}
public abstract void TestVoid ();
public abstract void TestInt (int i);
}
abstract class DeriveVTable : Base
{
public override int Prop
{
get { return 1; }
}
public override int this[int i]
{
get { return 1; }
}
public override void TestVoid ()
{
}
public override void TestInt (int i)
{
}
}
abstract class NewVTable : DeriveVTable
{
public new abstract int Prop
{
get;
}
public new int this[int i]
{
get { return 2; }
}
public new void TestVoid ()
{
}
public new void TestInt (int i)
{
}
public void Overload ()
{
}
public void Overload (int i)
{
}
public static void Main ()
{
}
}