[Mono-bugs] [Bug 75745][Nor] New - CS0642 is not reported for
semicolon after if statement
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon Aug 8 10:09:08 EDT 2005
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=75745
--- shadow/75745 2005-08-08 10:09:08.000000000 -0400
+++ shadow/75745.tmp.30199 2005-08-08 10:09:08.000000000 -0400
@@ -0,0 +1,45 @@
+Bug#: 75745
+Product: Mono: Compilers
+Version: 1.0
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: gert.driesen at pandora.be
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: CS0642 is not reported for semicolon after if statement
+
+mcs does not report CS0642 when there's a semicolon after an if statement.
+
+Note:
+
+This warning should only be reported in warning 3 level and higher.
+
+To reproduce this issue, compile the following code snippet (with
+mcs /warn:3):
+
+public class A
+{
+ public static void Main ()
+ {
+ if ("A".IndexOf("B") != -1)
+ ;
+ else {
+ }
+ }
+}
+
+Actual result:
+
+Successful compilation without warnings
+
+Expected result:
+
+test.cs(5,4): warning CS0642: Possible mistaken null statement
More information about the mono-bugs
mailing list