[Mono-bugs] [Bug 77440][Nor] New - Anonymous methods are hosted on the wrong ScopeInfo

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Feb 1 18:26:11 EST 2006

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by miguel at ximian.com.


--- shadow/77440	2006-02-01 18:26:11.000000000 -0500
+++ shadow/77440.tmp.13109	2006-02-01 18:26:11.000000000 -0500
@@ -0,0 +1,30 @@
+Bug#: 77440
+Product: Mono: Compilers
+Version: unspecified
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: miguel at ximian.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: Anonymous methods are hosted on the wrong ScopeInfo
+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.

More information about the mono-bugs mailing list