[Mono-bugs] [Bug 360455] (g)mcs erroneously raises "x is never used" warning CS0067 with public events

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Feb 29 03:02:54 EST 2008


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

User skolima at gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=360455#c2


Leszek Ciesielski <skolima at gmail.com> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
                 CC|                                                |skolima at gmail.com
            Summary|gmcs erroneously raises "x is never used"       |(g)mcs erroneously raises "x is never used"
                   |warning                                         |warning CS0067 with public events




--- Comment #2 from Leszek Ciesielski <skolima at gmail.com>  2008-02-29 01:02:54 MST ---
This is not realated to generics, I have encountered the same problem with 1.0
profile. Another test case attached. Problem exists in 1.2.6 and svn-96808

Actual output:

[mono] ~ @ mcs AbstractEventBug.cs
AbstractEventBug.cs(17,54): warning CS0067: The event
'ConsoleApplication1.Parent.Example' is never used
Compilation succeeded - 1 warning(s)

Expected: compilation without warnings, as the event is public and there is
code raising it.


-- 
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