[Mono-bugs] [Bug 70970][Wis] New - mcs wrongly generates CS0165 for valid code

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 3 Jan 2005 21:52: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 peter@novonyx.com.

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

--- shadow/70970	2005-01-03 21:52:10.000000000 -0500
+++ shadow/70970.tmp.18328	2005-01-03 21:52:10.000000000 -0500
@@ -0,0 +1,23 @@
+Bug#: 70970
+Product: Mono: Compilers
+Version: 1.1
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: peter@novonyx.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs wrongly generates CS0165 for valid code
+
+When compiling the attached c# code, mcs will fail with:
+  bug.cs(23) error CS0165: Use of unassigned local variable `x'
+  Compilation failed: 1 error(s), 0 warnings
+
+Microsoft's csc will properly compile the code.