[Mono-bugs] [Bug 69195][Nor] Changed - variable assignation for CS0165 incorrectly computed on conditional expressions

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 1 Dec 2004 06:18:07 -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 marek.safar@seznam.cz.

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

--- shadow/69195	2004-11-25 21:58:44.000000000 -0500
+++ shadow/69195.tmp.2606	2004-12-01 06:18:07.000000000 -0500
@@ -10,13 +10,12 @@
 Component: C#
 AssignedTo: martin@ximian.com                            
 ReportedBy: atsushi@ximian.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
 URL: 
-Cc: 
 Summary: variable assignation for CS0165 incorrectly computed on conditional expressions
 
 For CS0165, all local variables are checked if it is initialized or not
 before being referenced. There is a bug around it when we have complex
 expression formalized as
 
@@ -44,6 +43,15 @@
 
 Expected Results (csc):
 cs0165.cs(8,37): error CS0165: Use of unassigned local variable 's'
 
 How often does this happen? 
 consistently.
+
+------- Additional Comments From marek.safar@seznam.cz  2004-12-01 06:18 -------
+I think it is csc bug.
+
+Because 
+
+(s = "")
+
+is performed everytime => value is assigned.