Bug 311254 (MONO27193) - Using an Eventhandler with add/remove accessors fails in Constructor of the defining class
Summary: Using an Eventhandler with add/remove accessors fails in Constructor of the d...
Status: RESOLVED MOVED
Alias: MONO27193
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-28 15:30 UTC by Forgotten User k-NWxUd5EK
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
A small Program that demonstrates the problem. (971 bytes, text/plain)
2002-06-28 15:31 UTC, Thomas Wiest
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 17:58:36 UTC


---- Reported by jpo234@netscape.net 2002-06-28 08:30:53 MST ----

Please fill in this template when reporting a bug, unless you know what you
are doing.
Description of Problem:


Steps to reproduce the problem:
1. Compile the attached program

Actual Results:
mcs Event.cs
Event.cs(27) error CS0070: The event 'counted' can only appear on the
left-side of a += or -= (except when used from within the type 'EventSender')
Compilation failed: 1 error(s), 0 warnings
RESULT: 1


Expected Results: no error


How often does this happen? always

Additional Information:



---- Additional Comments From jpo234@netscape.net 2002-06-28 08:31:58 MST ----

Created an attachment (id=164286)
A small Program that demonstrates the problem.




---- Additional Comments From lupus@ximian.com 2002-07-08 10:29:58 MST ----



*** This bug has been marked as a duplicate of https://bugzilla.novell.com/show_bug.cgi?id=MONO25433 ***

Imported an attachment (id=164286)

Unknown operating system unknown. Setting to default OS "Other".
This bug was marked DUPLICATE in the database it was moved from.
    Changing resolution to "MOVED"