Author: marek
Date: 2007-05-15 15:29:12 -0400 (Tue, 15 May 2007)
New Revision: 77432
Added:
trunk/mcs/errors/cs0158-5.cs
Modified:
trunk/mcs/errors/cs0159-2.cs
trunk/mcs/errors/cs0159-3.cs
trunk/mcs/errors/cs0159-4.cs
trunk/mcs/errors/cs0159.cs
Log:
New test, updates.
Added: trunk/mcs/errors/cs0158-5.cs
===================================================================
--- trunk/mcs/errors/cs0158-5.cs 2007-05-15 19:28:30 UTC (rev 77431)
+++ trunk/mcs/errors/cs0158-5.cs 2007-05-15 19:29:12 UTC (rev 77432)
@@ -0,0 +1,30 @@
+// CS0158: The label `LBL4' shadows another label by the same name in a
contained scope
+// Line: 17
+
+using System;
+
+class A
+{
+ static int Test(int i)
+ {
+ switch (i)
+ {
+ case 1:
+ Console.WriteLine("1");
+ if (i > 0)
+ goto LBL4;
+ Console.WriteLine("2");
+ break;
+
+ case 3:
+ Console.WriteLine("3");
+ LBL4:
+ Console.WriteLine("4");
+ return 0;
+ }
+ LBL4:
+ Console.WriteLine("4");
+ return 1;
+ }
+}
+
Modified: trunk/mcs/errors/cs0159-2.cs
===================================================================
--- trunk/mcs/errors/cs0159-2.cs 2007-05-15 19:28:30 UTC (rev 77431)
+++ trunk/mcs/errors/cs0159-2.cs 2007-05-15 19:29:12 UTC (rev 77432)
@@ -1,4 +1,4 @@
-// cs0159-2.cs: No such label `case 20:' within the scope of the goto statement
+// CS0159: The label `case 20:' could not be found within the scope of the
goto statement
// Line: 13
class y {
Modified: trunk/mcs/errors/cs0159-3.cs
===================================================================
--- trunk/mcs/errors/cs0159-3.cs 2007-05-15 19:28:30 UTC (rev 77431)
+++ trunk/mcs/errors/cs0159-3.cs 2007-05-15 19:29:12 UTC (rev 77432)
@@ -1,4 +1,4 @@
-// cs0159-3.cs: No such label `case null:' within the scope of the goto
statement
+// CS0159: The label `case null:' could not be found within the scope of the
goto statement
// Line: 10
class y {
Modified: trunk/mcs/errors/cs0159-4.cs
===================================================================
--- trunk/mcs/errors/cs0159-4.cs 2007-05-15 19:28:30 UTC (rev 77431)
+++ trunk/mcs/errors/cs0159-4.cs 2007-05-15 19:29:12 UTC (rev 77432)
@@ -1,4 +1,4 @@
-// cs0159-4.cs: No such label `skip' in this scope
+// CS0159: The label `skip:' could not be found within the scope of the goto
statement
// Line: 9
class Foo {
Modified: trunk/mcs/errors/cs0159.cs
===================================================================
--- trunk/mcs/errors/cs0159.cs 2007-05-15 19:28:30 UTC (rev 77431)
+++ trunk/mcs/errors/cs0159.cs 2007-05-15 19:29:12 UTC (rev 77432)
@@ -1,5 +1,5 @@
-// cs0159.cs: No such label `default:' within the scope of the goto statement
-// Line:
+// CS0159: The label `default:' could not be found within the scope of the
goto statement
+// Line: 10
class X {
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches