[Mono-bugs] [Bug 82042][Nor] New - CS0469 not reported for internal fields that are never assigned to
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sun Jul 8 08:57:05 EDT 2007
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=82042
--- shadow/82042 2007-07-08 08:57:05.000000000 -0400
+++ shadow/82042.tmp.12207 2007-07-08 08:57:05.000000000 -0400
@@ -0,0 +1,37 @@
+Bug#: 82042
+Product: Mono: Compilers
+Version: 1.2
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com
+ReportedBy: gert.driesen at pandora.be
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: CS0469 not reported for internal fields that are never assigned to
+
+(g)mcs currently does not report CS0469 for internal fields that are never
+assigned to.
+
+To reproduce, compile the following code snippet (using
+mcs /target:library test.cs):
+
+class A
+{
+ internal string Name;
+}
+
+Expected result:
+
+test1.cs(3,18): warning CS0649: Field 'A.Name' is never assigned to, and
+will always have its default value null
+
+Actual result:
+
+No warning.
More information about the mono-bugs
mailing list