Bug 320225 (MONO77440) - [ANONYMOUS METHODS] (FIXED) Check test-anon-27.cs
Summary: [ANONYMOUS METHODS] (FIXED) Check test-anon-27.cs
Status: RESOLVED FIXED
Alias: MONO77440
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Martin Baulig
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-02 01:26 UTC by Miguel de Icaza
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

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


---- Reported by miguel@ximian.com 2006-02-01 18:26:11 MST ----

Test mcs/tests/test-anon-27.cs is known to fail, this bug is to track the
research on this particular bug.

The problem with this bug is that the actual methods are not hosted on the
right helper class, although the code that is generated assumes that it is.

In the particular case of test-anon-27 the issue is that since the method
itself does not capture any variables, the compiler places the method
side-by-side the method that creates the anonymous method.

The problem is that the method has one of its local variables captured, so
it should be hosted inside the class that holds the helper local variable.



---- Additional Comments From martin@ximian.com 2006-09-08 10:54:15 MST ----

Fixed by the new code.



---- Additional Comments From martin@ximian.com 2006-10-04 18:19:17 MST ----

Fixed in SVN.


Unknown operating system unknown. Setting to default OS "Other".