[Mono-bugs] [Bug 655770] New: [regression] Unused members in nested classes do not result in CS0169
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Nov 24 10:54:39 EST 2010
https://bugzilla.novell.com/show_bug.cgi?id=655770
https://bugzilla.novell.com/show_bug.cgi?id=655770#c0
Summary: [regression] Unused members in nested classes do not
result in CS0169
Classification: Mono
Product: Mono: Compilers
Version: 2.8.x
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: C#
AssignedTo: msafar at novell.com
ReportedBy: abockover at novell.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
In Mono 2.8 there is a gmcs regression around the emitting of the CS0169
warning. If a class within class has an unused member, the warning will not be
emitted for that member:
class Foo
{
int a;
class Bar
{
int a;
}
}
In 2.6 CS0169 will be emitted for Foo.a and Foo.Bar.a. In 2.8, the warning will
only be emitted for Foo.a - Foo.Bar.a is not caught.
Mono 2.6's gmcs:
$ gmcs regression_cs0169.cs -target:library
regression_cs0169.cs(3,9): warning CS0169: The private field `Foo.a' is never
used
regression_cs0169.cs(7,13): warning CS0169: The private field `Foo.Bar.a' is
never used
Mono 2.8's gmcs:
$ gmcs regression_cs0169.cs -target:library
regression_cs0169.cs(3,9): warning CS0169: The private field `Foo.a' is never
used
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list