[bcl] Update BCL Linked Size
[mono-project.git] / mcs / errors / cs0158-2.cs
blobd383c12e6ffa5a44f3b9fa68196929f73be1e9ff
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 Foo:
15 Hello hello = delegate (Test test) {
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);