[Mono-bugs] [Bug 41657][Min] Changed - MCS fails when testing if an "out" variable is assigned or not

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Tue, 6 May 2003 08:09:56 -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 martin@ximian.com.

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

--- shadow/41657	Fri Apr 25 22:52:31 2003
+++ shadow/41657.tmp.31317	Tue May  6 08:09:56 2003
@@ -34,6 +34,32 @@
 try-catch block.
 
 ------- Additional Comments From yoros@wanadoo.es  2003-04-21 13:50 -------
 Created an attachment (id=4078)
 TestCase for the bug. CSC compiles it right.
 
+
+------- Additional Comments From martin@ximian.com  2003-05-06 08:09 -------
+using System;
+
+public class EntryPoint {
+
+	public static void Method (out object value) {
+		if (true) {
+			try {
+				value = null;
+				return;
+			}
+			catch {
+			}
+		}
+		value = null;
+	}
+
+	public static void Main (string[] args) {
+		object v;
+		Method(out v);
+	}
+
+}
+
+