[Mono-bugs] [Bug 52589][Wis] New - We allow break, continue, goto to exit a finally block
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sun, 4 Jan 2004 16:17:10 -0500 (EST)
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 bmaurer@users.sf.net.
http://bugzilla.ximian.com/show_bug.cgi?id=52589
--- shadow/52589 2004-01-04 16:17:10.000000000 -0500
+++ shadow/52589.tmp.30136 2004-01-04 16:17:10.000000000 -0500
@@ -0,0 +1,37 @@
+Bug#: 52589
+Product: Mono/Compilers
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: C#
+AssignedTo: martin@ximian.com
+ReportedBy: bmaurer@users.sf.net
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: We allow break, continue, goto to exit a finally block
+
+We allow programs such as:
+
+class T {
+ static void Main ()
+ {
+ while (true) {
+ try {
+ System.Console.WriteLine ("trying");
+ } finally {
+ break;
+ }
+ }
+ }
+}
+
+to compile. They should report a CS0157. I have put three test cases (one
+for each statement type) in mcs/errors.
+
+Baulig, this is your area.