[Mono-bugs] [Bug 80827][Nor] New - Problem with overrides.
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Feb 13 10:13:20 EST 2007
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 at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=80827
--- shadow/80827 2007-02-13 10:13:20.000000000 -0500
+++ shadow/80827.tmp.24194 2007-02-13 10:13:20.000000000 -0500
@@ -0,0 +1,59 @@
+Bug#: 80827
+Product: Mono: Runtime
+Version: 1.2
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: JIT
+AssignedTo: lupus at ximian.com
+ReportedBy: miguel at ximian.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Problem with overrides.
+
+The following program (compiled with CSC, because MCS is currently buggy
+and can not compile it), should print:
+
+Override
+Interface
+
+But instead it prints:
+Override
+Override
+
+using System;
+abstract class A : I
+{
+ protected abstract void M ();
+
+ void I.M ()
+ {
+ Console.WriteLine ("Interface");
+ }
+}
+
+interface I
+{
+ void M ();
+}
+
+class C : A, I
+{
+ protected override void M ()
+ {
+ Console.WriteLine ("Override");
+ }
+
+ public static void Main ()
+ {
+ C c = new C ();
+ c.M ();
+ I i = c;
+ i.M ();
+ }
+}
More information about the mono-bugs
mailing list