[Mono-bugs] [Bug 59424][Nor] Changed - Incorrect error: The label 'c' shadows another label by the same name in a containing scope.

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 2 Jun 2004 04:28:42 -0400 (EDT)


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 marek.safar@seznam.cz.

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

--- shadow/59424	2004-06-01 20:55:56.000000000 -0400
+++ shadow/59424.tmp.6544	2004-06-02 04:28:42.000000000 -0400
@@ -40,6 +40,19 @@
 
 The `whole block' in which the second `c' label is declared includes
 the first block.
 
 ------- Additional Comments From bmaurer@users.sf.net  2004-06-01 20:55 -------
 That was 8.4, Labeled statements
+
+------- Additional Comments From marek.safar@seznam.cz  2004-06-02 04:28 -------
+csc v2.0 reports error too.
+
+Microsoft (R) Visual C# .NET Compiler version 8.00.40426.16
+for Microsoft (R) Windows (R) .NET Framework version 2.0.40426
+Copyright (C) Microsoft Corporation 2001-2003. All rights reserved.
+
+1.cs(4,5): warning CS0164: This label has not been referenced
+1.cs(4,5): error CS0158: The label 'c' shadows another label by the
+same name in a contained scope
+1.cs(5,3): warning CS0164: This label has not been referenced
+