[Mono-bugs] [Bug 42190][Nor] New - Bug in foreach
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Thu, 1 May 2003 00:50:34 -0400 (EDT)
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 bugbuddy-import@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=42190
--- shadow/42190 Thu May 1 00:50:34 2003
+++ shadow/42190.tmp.7876 Thu May 1 00:50:34 2003
@@ -0,0 +1,67 @@
+Bug#: 42190
+Product: Mono/MCS
+Version: unspecified
+OS: GNU/Linux [Other]
+OS Details:
+Status: UNCONFIRMED
+Resolution:
+Severity: Unknown
+Priority: Normal
+Component: Misc
+AssignedTo: triage@ximian.com
+ReportedBy: pbaena@uol.com.ar
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Bug in foreach
+
+Package: Mono/MCS
+Priority: Normal
+Version: cvs
+Synopsis: Bug in foreach
+Bugzilla-Product: Mono/MCS
+Bugzilla-Component: Misc
+
+Description:
+It does not show the 10 'finally' as it should.
+
+
+using System;
+using System.Collections;
+
+class TestF
+{
+ public static void Main ()
+ {
+ Console.WriteLine ("Now it should display 10 'finally':");
+ for (int i = 0; i < 10; i++)
+ {
+ dosomething ();
+ }
+ }
+
+ public static void dosomething ()
+ {
+ try
+ {
+ IDictionary idic = Environment.GetEnvironmentVariables();
+ foreach (DictionaryEntry de in idic)
+ {
+ // If I let it iterate it runs the finally blocks
+ return;
+ }
+ }
+ finally
+ {
+ Console.WriteLine ("finally");
+ }
+ }
+}
+
+
+
+Setting qa contact to the default for this product.
+ This bug either had no qa contact or an invalid one.
+
+