[Mono-bugs] [Bug 44726][Nor] Changed - Overrides allowed on non-virtual members
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Tue, 24 Jun 2003 00:38:55 -0400 (EDT)
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 miguel@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=44726
--- shadow/44726 Fri Jun 13 09:27:05 2003
+++ shadow/44726.tmp.27131 Tue Jun 24 00:38:55 2003
@@ -1,14 +1,14 @@
Bug#: 44726
Product: Mono/MCS
Version: unspecified
-OS:
+OS: unknown
OS Details:
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
Priority: Normal
Component: Misc
AssignedTo: mono-bugs@ximian.com
ReportedBy: mkestner@ximian.com
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
@@ -29,6 +29,22 @@
class ClassB : ClassA {
public overrides void Bar () {}
}
csc errors out because ClassA::Bar is not marked virtual, but mcs compiles
without errors.
+
+------- Additional Comments From miguel@ximian.com 2003-06-24 00:38 -------
+Full program:
+
+interface IFoo {
+ void Bar ();
+}
+
+class ClassA : IFoo {
+ public void Bar () {}
+}
+
+class ClassB : ClassA {
+ public override void Bar () {}
+}
+