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:
authorMartin Baulig <martin@novell.com>2003-07-05 22:53:16 +0400
committerMartin Baulig <martin@novell.com>2003-07-05 22:53:16 +0400
commit55dfaa78bb92f744e29d35f819b1f943bcb01869 (patch)
treee8e49a3f78d730e98a97de32e56ca9cd75c92b33 /mcs/tests/test-197.cs
parent15d40af260331566858f060aae1b3405fae25d54 (diff)
2003-07-05 Martin Baulig <martin@ximian.com>
* test-197.cs: New test for bug #42973. svn path=/trunk/mcs/; revision=15964
Diffstat (limited to 'mcs/tests/test-197.cs')
-rw-r--r--mcs/tests/test-197.cs36
1 files changed, 36 insertions, 0 deletions
diff --git a/mcs/tests/test-197.cs b/mcs/tests/test-197.cs
new file mode 100644
index 00000000000..4d9d217de7a
--- /dev/null
+++ b/mcs/tests/test-197.cs
@@ -0,0 +1,36 @@
+using System;
+
+public interface A
+{
+ void Foo ();
+}
+
+public interface B : A
+{ }
+
+public abstract class X : A
+{
+ public abstract void Foo ();
+}
+
+public abstract class Y : X, B
+{ }
+
+public class Z : Y
+{
+ public override void Foo ()
+ {
+ Console.WriteLine ("Hello World!");
+ }
+}
+
+class Test
+{
+ public static int Main ()
+ {
+ Z z = new Z ();
+ A a = z;
+ a.Foo ();
+ return 0;
+ }
+}