Bug 323512 (MONO80827) - Problem with overrides.
Summary: Problem with overrides.
Status: RESOLVED MOVED
Alias: MONO80827
Product: Mono: Runtime
Classification: Mono
Component: JIT (show other bugs)
Version: 1.2
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Massimiliano Mantione
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-13 17:13 UTC by Miguel de Icaza
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 20:27:38 UTC


---- Reported by miguel@ximian.com 2007-02-13 10:13:20 MST ----

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 ();
        }
}



---- Additional Comments From miguel@ximian.com 2007-02-17 11:30:43 MST ----

Massi has a fix for a similar issue (75903).



---- Additional Comments From massi@ximian.com 2007-02-19 06:16:59 MST ----

My fix works here too, and the problem seems really the same one...

*** This bug has been marked as a duplicate of https://bugzilla.novell.com/show_bug.cgi?id=MONO75903 ***


Unknown operating system unknown. Setting to default OS "Other".
This bug was marked DUPLICATE in the database it was moved from.
    Changing resolution to "MOVED"