[Mono-bugs] [Bug 625583] New: gmcs emits unused field warning on field used as argument to method invocation
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Jul 26 10:43:50 EDT 2010
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: mono-bugs at lists.ximian.com
ReportedBy: rodrigobamboo at gmail.com
QAContact: mono-bugs at lists.ximian.com
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.
More information about the mono-bugs
mailing list