[Mono-bugs] [Bug 66777][Nor] Changed - wrong CS0642 warning

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 23 Nov 2004 13:20:52 -0500 (EST)


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 miguel@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=66777

--- shadow/66777	2004-11-23 03:45:33.000000000 -0500
+++ shadow/66777.tmp.9141	2004-11-23 13:20:52.000000000 -0500
@@ -66,6 +66,20 @@
 This warning should be reported only when after ';' follows { } block.
 See errors/cs0642-2.cs
 
 
 ------- Additional Comments From marek.safar@seznam.cz  2004-11-23 03:45 -------
 Miguel, any progress ?
+
+------- Additional Comments From miguel@ximian.com  2004-11-23 13:20 -------
+I am confused Marek.
+
+The ';' after the while is a common error in software:
+
+while (condition);
+      statement ();
+
+The situation arises when someone mistakenly leaves the trailing `;'
+after the while condition, and *visually* the code looks fine, but
+in reality `statement()' will be executed *always*.
+
+