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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +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 (); + } +} _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
