Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

31 lines
468 B
C#

// CS0158: The label `Foo' shadows another label by the same name in a contained scope
// Line: 17
using System;
public delegate void Hello (Test test);
public class Test
{
public void Whatever ()
{ }
static void RunIt (Test t)
{
Foo:
Hello hello = delegate (Test test) {
Hello hello2 = delegate (Test test2) {
Foo:
test2.Whatever ();
};
hello2 (test);
};
hello (t);
}
static void Main ()
{
Test t = new Test ();
RunIt (t);
}
}