Remove useless ip += from MINT_JMP, it is assigned later. (#19217)
[mono-project.git] / mcs / errors / cs0158-4.cs
blobc19c0c9a603802e48b8a5ea0dbee527d5e6cb393
1 // CS0158: The label `Foo' shadows another label by the same name in a contained scope
2 // Line: 17
3 using System;
5 public delegate void Hello (Test test);
7 public class Test
9 public void Whatever ()
10 { }
12 static void RunIt (Test t)
14 Hello hello = delegate (Test test) {
15 Foo:
16 Hello hello2 = delegate (Test test2) {
17 Foo:
18 test2.Whatever ();
20 hello2 (test);
22 hello (t);
25 static void Main ()
27 Test t = new Test ();
28 RunIt (t);