summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0158-6.cs
blob: 6fc139af394f14e81a4fd7ecdbb0ac332ae2f6ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// CS0158: The label `a' shadows another label by the same name in a contained scope
// Line: 11

class Foo
{
	static void Main ()
	{
		int i = 1;
		goto a;
		if (i == 9) {
			a:
			return;
		}
a:
		return;
	}
}