[Mono-bugs] [Bug 446507] New: Methods with signatures matching explicit interface methods are emitted as virtual

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Nov 19 06:19:58 EST 2008


https://bugzilla.novell.com/show_bug.cgi?id=446507


           Summary: Methods with signatures matching explicit interface
                    methods are emitted as virtual
           Product: Mono: Compilers
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: rkvinge at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Repro:

public interface I {
        void Clear ();
}
public class C : I {
        public void Clear () {}
        void I.Clear () {}
}

gmcs output (from reflector):
method public hidebysig newslot virtual final instance void Clear() cil
managed
{
}
method private hidebysig newslot virtual final instance void I.Clear() cil
managed
{
 .override I::Clear
}


csc output:
method public hidebysig instance void Clear() cil managed
{
}

method private hidebysig newslot virtual final instance void I.Clear() cil
managed
{
 .override I::Clear
}

rolf at linux:~> mono --version
Mono JIT compiler version 2.3 (/trunk/mono r119145 Tue Nov 18 13:16:55 CET
2008)
Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com
        TLS:           __thread
        GC:            Included Boehm (with typed GC)
        SIGSEGV:       altstack
        Notifications: epoll
        Architecture:  x86
        Disabled:      none


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list