Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2010-07-05 18:49:00 +0400
committerMarek Safar <marek.safar@gmail.com>2010-07-05 18:49:00 +0400
commit86a8848f59b4f2b785781f55ed85433b0d4c2bd5 (patch)
treeb74475b54a176d9b9aea15cf18dcf2d87b8f9d86 /mcs/tests/test-785.cs
parent10e67ce38fbee44b3f5584d4f9df6de6c5f4cc5c (diff)
More tests.
svn path=/trunk/mcs/; revision=159908
Diffstat (limited to 'mcs/tests/test-785.cs')
-rw-r--r--mcs/tests/test-785.cs72
1 files changed, 72 insertions, 0 deletions
diff --git a/mcs/tests/test-785.cs b/mcs/tests/test-785.cs
new file mode 100644
index 00000000000..d29a1c4b731
--- /dev/null
+++ b/mcs/tests/test-785.cs
@@ -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 ()
+ {
+ }
+}