a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
31 lines
470 B
C#
31 lines
470 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)
|
|
{
|
|
Hello hello = delegate (Test test) {
|
|
Foo:
|
|
Hello hello2 = delegate (Test test2) {
|
|
Foo:
|
|
test2.Whatever ();
|
|
};
|
|
hello2 (test);
|
|
};
|
|
hello (t);
|
|
}
|
|
|
|
static void Main ()
|
|
{
|
|
Test t = new Test ();
|
|
RunIt (t);
|
|
}
|
|
}
|