[Mono-bugs] [Bug 75649][Maj] Changed - Iterators do not capture event fields.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Jul 27 15:19:43 EDT 2005


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.

http://bugzilla.ximian.com/show_bug.cgi?id=75649

--- shadow/75649	2005-07-27 15:09:51.000000000 -0400
+++ shadow/75649.tmp.27028	2005-07-27 15:19:43.000000000 -0400
@@ -52,6 +52,32 @@
 		IEnumerator y = x.Pipeline ();
 		y.MoveNext ();
 	}
 }
 
 It works with MS compiler.
+
+------- Additional Comments From miguel at ximian.com  2005-07-27 15:19 -------
+This also seems to be failing for regular fields, a simpler test csae
+also throws:
+
+using System;
+using System.Collections;
+
+class X {
+	int a = 987;
+
+	public IEnumerator Pipeline ()
+	{
+		if (a != 987)
+			throw new Exception ("oo");
+		yield return 0;
+	}
+	
+	static void Main ()
+	{
+		X x = new X ();
+		IEnumerator y = x.Pipeline ();
+		y.MoveNext ();
+	}
+}
+


More information about the mono-bugs mailing list