[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 15:37: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 marek.safar at seznam.cz.

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

--- shadow/80249	2006-12-13 15:34:39.000000000 -0500
+++ shadow/80249.tmp.23742	2006-12-13 15:37:11.000000000 -0500
@@ -92,6 +92,16 @@
 		MyDict dict = new MyDict ();
 		foreach (KeyValuePair<object, object> o in dict) {
 			Console.WriteLine ("{0} {1}", o.Key, o.Value);
 		}
 	}
 }
+
+------- Additional Comments From marek.safar at seznam.cz  2006-12-13 15:37 -------
+Unfortunately it looks like not a bug because when you try to compile
+the code with csc you will get exactly same result in the both cases.
+
+InvalidCast or NotImplemented
+
+So, we can fix it but that we will be incompatible with csc.
+
+


More information about the mono-bugs mailing list