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:
authorMiguel de Icaza <miguel@gnome.org>2001-12-14 17:25:07 +0300
committerMiguel de Icaza <miguel@gnome.org>2001-12-14 17:25:07 +0300
commitddc3492448bfbcd586e20c25ac8a27aca2f649e3 (patch)
tree530a7a7961bd9f5a734cd68baaed782937e3cf92 /mcs/errors/bug5.cs
parentce7cc5ef8a87fa0a9a5babc2d4bd27f931792e28 (diff)
Flush changes from work, minimal
svn path=/trunk/mcs/; revision=1575
Diffstat (limited to 'mcs/errors/bug5.cs')
-rwxr-xr-xmcs/errors/bug5.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/mcs/errors/bug5.cs b/mcs/errors/bug5.cs
new file mode 100755
index 00000000000..df43ef31662
--- /dev/null
+++ b/mcs/errors/bug5.cs
@@ -0,0 +1,20 @@
+interface I {
+ void a ();
+}
+
+abstract class X : I {
+ public abstract void a ();
+}
+
+class Y : X {
+ override public void a () {
+ System.Console.WriteLine ("Hello!");
+ return;
+ }
+
+ static void Main () {
+ Y y = new Y ();
+
+ ((I) y ).a ();
+ }
+}