[Mono-bugs] [Bug 80249][Maj] Changed - [GMCS] incorrect compilation of foreach

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Dec 13 23:27:20 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 rharinath at novell.com.

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

--- shadow/80249	2006-12-13 20:59:00.000000000 -0500
+++ shadow/80249.tmp.2554	2006-12-13 23:27:20.000000000 -0500
@@ -116,6 +116,10 @@
 method. The sample code matches that method and the generated code in
 the csc-compiled bin calls the generic method.
 
 ------- Additional Comments From rhowell at novell.com  2006-12-13 20:59 -------
 Does this bug have anything to do with bug 79561 ? They both deal with
 IEnumerable, Generics, and foreach loops.
+
+------- Additional Comments From rharinath at novell.com  2006-12-13 23:27 -------
+IIRC, 'foreach' prefers direct calls to GetEnumerator rather than
+going through the IEnumerable interface.


More information about the mono-bugs mailing list