[Mono-bugs] [Bug 29017][Nor] New - abstract method implementation
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
15 Aug 2002 17:17:51 -0000
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by lupus@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=29017
--- shadow/29017 Thu Aug 15 13:17:51 2002
+++ shadow/29017.tmp.2686 Thu Aug 15 13:17:51 2002
@@ -0,0 +1,40 @@
+Bug#: 29017
+Product: Mono/MCS
+Version: unspecified
+OS: other
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: lupus@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: abstract method implementation
+
+The following program should not compile with mcs (and it doesn't with csc).
+public abstract class B {
+ public abstract void stuff ();
+}
+public class O : B {
+ public virtual void stuff () {}
+ static void Main() {}
+}
+Tested running mcs with the ms runtime (still with #undef BROKEN_RUNTIME).
+csc error message:
+reflected.cs(12,22): warning CS0114: 'O.stuff()' hides inherited member
+'B.stuff()'. To make the current member override that implementation, add
+the override keyword. Otherwise add the new keyword.
+reflected.cs(9,23): (Location of symbol related to previous warning)
+reflected.cs(11,14): error CS0534: 'O' does not implement inherited
+abstract member 'B.stuff()'
+reflected.cs(9,23): (Location of symbol related to previous error)
+mcs log:
+reflected.cs(12) warning CS0114: `O.stuff' hides inherited member
+`B.stuff'. To make the current member override that implementation, add
+the override keyword, otherwise use the new keyword
+Compilation succeeded - 1 warning(s)