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