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