[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:47:52 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 23:27:20.000000000 -0500
+++ shadow/80249.tmp.3291 2006-12-13 23:47:52.000000000 -0500
@@ -120,6 +120,18 @@
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.
+
+------- Additional Comments From rharinath at novell.com 2006-12-13 23:47 -------
+... and after a quick scan of the IronPython source code, I think the
+testcase above doesn't reflect the code (and we seem to be doing the
+right thing wrt the testcase).
+
+I think the operative declaration is
+
+ public IAttributesDictionary dict;
+
+so, there may be some other issue. Perhaps we are checking 'is
+IEnumerable' too early somewhere.
More information about the mono-bugs
mailing list