[Mono-bugs] [Bug 62673][Wis] New - Spurious warning CS0169

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 7 Aug 2004 13:11:11 -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 colin@breame.com.

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

--- shadow/62673	2004-08-07 13:11:11.000000000 -0400
+++ shadow/62673.tmp.4336	2004-08-07 13:11:11.000000000 -0400
@@ -0,0 +1,34 @@
+Bug#: 62673
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: Windows XP
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: colin@breame.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Spurious warning CS0169
+
+The warning CS0169 "Private field `A.name' is never used" is reported
+incorrectly.
+
+e.g.  Try to compile with -warn:4
+
+public class A {
+	string name;
+
+	public A(string name) {
+		this.name = name;
+	}
+}
+
+gives:
+
+test.cs(3) warning CS0169: Private field `A.name' is never used