[Mono-bugs] [Bug 75321][Wis] Changed - Private variable assigned reference value but otherwise not used flagged as warning

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Jun 20 00:54:05 EDT 2005


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 gert.driesen at pandora.be.

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

--- shadow/75321	2005-06-19 22:49:47.000000000 -0400
+++ shadow/75321.tmp.10916	2005-06-20 00:54:05.000000000 -0400
@@ -1,13 +1,13 @@
 Bug#: 75321
 Product: Mono: Compilers
 Version: 1.1
 OS: unknown
 OS Details: both Win32 and Linux
-Status: RESOLVED   
-Resolution: NOTABUG
+Status: REOPENED   
+Resolution: 
 Severity: Unknown
 Priority: Wishlist
 Component: C#
 AssignedTo: mono-bugs at ximian.com                            
 ReportedBy: claytonharbour at sporadicism.com               
 QAContact: mono-bugs at ximian.com
@@ -69,6 +69,19 @@
 1.1.4 and 1.1.8 (and possibly in 1.1.7 as well)
 
 ------- Additional Comments From bmaurer at users.sf.net  2005-06-19 22:49 -------
 Marek commented to me on this in a private email. Basically, msft
 changed the behavior so that they act the way we do in v2. So this is
 NOTABUG
+
+------- Additional Comments From gert.driesen at pandora.be  2005-06-20 00:54 -------
+In MS.NET Beta 2 (and MS.NET 1.x), no warning is reported at all for 
+this code fragment.
+
+Also, if I assign a constant value to the instance variable, then 
+csc2 reports CS0414 (not CS0169):
+
+test.cs(8,19): warning CS0414: The private field
+'HelloWorld.MainClass._myPrivateVar' is assigned but its value is 
+never used
+
+Note: csc 1.x reports CS0169 in this case.


More information about the mono-bugs mailing list