[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:43:14 -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	Tue Jun 24 00:38:55 2003
+++ shadow/44726.tmp.31264	Tue Jun 24 00:43:14 2003
@@ -45,6 +45,16 @@
 }
 
 class ClassB : ClassA {
     public override void Bar () {}
 }
 
+
+------- Additional Comments From miguel@ximian.com  2003-06-24 00:43 -------
+Expected output: 
+
+<nickd> t.cs(10,27): error CS0506: 'ClassB.Bar()' : cannot override
+inherited member 
+<nickd>         'ClassA.Bar()' because it is not marked virtual,
+abstract, or override 
+<nickd> t.cs(6,18): (Location of symbol related to previous error) 
+