[mcs] C# 7 tuple (foundation only).
[mono.git] / mcs / errors / cs0158-5.cs
1 // CS0158: The label `LBL4' shadows another label by the same name in a contained scope
2 // Line: 17
3
4 using System;
5
6 class A
7 {
8         static int Test(int i)
9         {
10                 switch (i)
11                 {
12                         case 1:
13                                 Console.WriteLine("1");
14                                 if (i > 0)
15                                         goto LBL4;
16                                 Console.WriteLine("2");
17                                 break;
18
19                         case 3:
20                                 Console.WriteLine("3");
21                         LBL4:
22                                 Console.WriteLine("4");
23                                 return 0;
24                 }
25         LBL4:
26                 Console.WriteLine("4");
27                 return 1;
28         }
29 }
30