[Mono-bugs] [Bug 44726][Nor] New - Overrides allowed on non-virtual members
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Fri, 13 Jun 2003 09:27:05 -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 mkestner@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=44726
--- shadow/44726 Fri Jun 13 09:27:05 2003
+++ shadow/44726.tmp.30968 Fri Jun 13 09:27:05 2003
@@ -0,0 +1,34 @@
+Bug#: 44726
+Product: Mono/MCS
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: mkestner@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Overrides allowed on non-virtual members
+
+In the following scenario:
+
+interface Foo {
+ void Bar ();
+}
+
+class ClassA : IFoo {
+ public void Bar () {}
+}
+
+class ClassB : ClassA {
+ public overrides void Bar () {}
+}
+
+csc errors out because ClassA::Bar is not marked virtual, but mcs compiles
+without errors.