[Mono-bugs] [Bug 488404] New: Cannot hide inherited members with "new" keyword.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Mar 24 15:56:30 EDT 2009


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


           Summary: Cannot hide inherited members with "new" keyword.
    Classification: Mono
           Product: Mono: Compilers
           Version: SVN
          Platform: i386
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: aksu at paju.oulu.fi
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.7)
Gecko/2009030422 Linux Mint/6 (Felicia) Firefox/3.0.7

Found this while compiling Banshee.

A snippet from code (/Banshee.Widgets/SearchEntry.cs(414,43)):

public new event EventHandler Toggled;


Error:

/Banshee.Widgets/SearchEntry.cs(414,43): error CS0108:
`Banshee.Widgets.SearchEntry.FilterMenuItem.Toggled' hides inherited member
`Gtk.Item.Toggled'. Use the new keyword if hiding was intended
/usr/local/lib/mono/gac/gtk-sharp/2.12.0.0__35e10195dab3c99f/gtk-sharp.dll
(Location of the symbol related to previous error)
Compilation failed: 1 error(s), 0 warnings

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.
You are the assignee for the bug.


More information about the mono-bugs mailing list