Remove useless ip += from MINT_JMP, it is assigned later. (#19217)
[mono-project.git] / mcs / errors / cs0158-5.cs
blob5ce5f691a9224b13a2cc874c58294ac26d28d44e
1 // CS0158: The label `LBL4' shadows another label by the same name in a contained scope
2 // Line: 17
4 using System;
6 class A
8 static int Test(int i)
10 switch (i)
12 case 1:
13 Console.WriteLine("1");
14 if (i > 0)
15 goto LBL4;
16 Console.WriteLine("2");
17 break;
19 case 3:
20 Console.WriteLine("3");
21 LBL4:
22 Console.WriteLine("4");
23 return 0;
25 LBL4:
26 Console.WriteLine("4");
27 return 1;