diff options
author | Miguel de Icaza <miguel@gnome.org> | 2001-12-14 17:25:07 +0300 |
---|---|---|
committer | Miguel de Icaza <miguel@gnome.org> | 2001-12-14 17:25:07 +0300 |
commit | ddc3492448bfbcd586e20c25ac8a27aca2f649e3 (patch) | |
tree | 530a7a7961bd9f5a734cd68baaed782937e3cf92 /mcs/errors/bug5.cs | |
parent | ce7cc5ef8a87fa0a9a5babc2d4bd27f931792e28 (diff) |
Flush changes from work, minimal
svn path=/trunk/mcs/; revision=1575
Diffstat (limited to 'mcs/errors/bug5.cs')
-rwxr-xr-x | mcs/errors/bug5.cs | 20 |
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 (); + } +} |