[Mono-bugs] [Bug 660553] New: gmcs fails to compile code with overriding delegates
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Dec 20 10:54:17 EST 2010
https://bugzilla.novell.com/show_bug.cgi?id=660553
https://bugzilla.novell.com/show_bug.cgi?id=660553#c0
Summary: gmcs fails to compile code with overriding delegates
Classification: Mono
Product: Mono: Compilers
Version: 2.8.x
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: C#
AssignedTo: msafar at novell.com
ReportedBy: david at dasz.at
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.224 Safari/534.10
ccnet at squeeze:~/tmp/overriding$ cat test.cs
namespace Foo {
public abstract class Model
{
public delegate Model Factory(object data);
}
public class SubModel
: Model
{
// this would work:
// public new delegate Model Factory(object data);
public new delegate Model Factory(object data, object fail);
}
}
ccnet at squeeze:~/tmp/overriding$ gmcs /t:library /warn:4 test.cs
test.cs(13,35): warning CS0109: The member `Foo.SubModel.Factory' does not hide
an inherited member. The new keyword is not required
Compilation succeeded - 1 warning(s)
ccnet at squeeze:~/tmp/overriding$
Both Csc 2010 and gmcs 2.6.7.0 build this code without warning.
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list