http://bugzilla.novell.com/show_bug.cgi?id=625583
http://bugzilla.novell.com/show_bug.cgi?id=625583#c0 Summary: gmcs emits unused field warning on field used as argument to method invocation Classification: Mono Product: Mono: Compilers Version: 2.6.x Platform: x86-64 OS/Version: openSUSE 11.2 Status: NEW Severity: Normal Priority: P5 - None Component: C# AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.466.0 Safari/534.3 using System; using System.Diagnostics; public class UnusedFieldBug { private bool usedField = true; public void UseTheField() { Debug.Assert(usedField); } } Reproducible: Always Steps to Reproduce: 1. compile the c# code Actual Results: UnusedFieldBug.cs(6,17): warning CS0414: The private field `UnusedFieldBug.usedField' is assigned but its value is never used Expected Results: No warnings. ms.net csc doesn't emit the warning. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
