[Mono-bugs] [Bug 59427][Wis] Changed - Reachability of try with finally

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 20 Sep 2004 13:44:46 -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 miguel@ximian.com.

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

--- shadow/59427	2004-06-07 07:38:03.000000000 -0400
+++ shadow/59427.tmp.15621	2004-09-20 13:44:46.000000000 -0400
@@ -1,13 +1,13 @@
 Bug#: 59427
 Product: Mono: Compilers
 Version: unspecified
 OS: unknown
 OS Details: 
-Status: REOPENED   
-Resolution: 
+Status: RESOLVED   
+Resolution: FIXED
 Severity: Unknown
 Priority: Wishlist
 Component: C#
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: bmaurer@users.sf.net               
 QAContact: mono-bugs@ximian.com
@@ -56,6 +56,14 @@
 function member that computes a value to be reachable. If this error
 occurs, it typically is an indication that a return statement is
 missing." -- 15.1
 
 Since the end of the `finally' block is not reachable, the end of the
 method is not reachable, so it does not violate this rule.
+
+------- Additional Comments From miguel@ximian.com  2004-09-20 13:44 -------
+Well, the compiler is expecting that a value is returned here,
+since you have an `int' result in your main.
+
+Either you return a value, or change it to void.
+
+Am closing this bug.