<?xml version="1.0"?>
<ErrorDocumentation xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ErrorName>CS0158</ErrorName>
  <Examples>
    <string>// 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;
	}
}
</string>
    <string>// CS0158: The label `LBL4' shadows another label by the same name in a contained scope
// Line: 17

using System;

class A
{
	static int Test(int i)
	{
		switch (i)
		{
			case 1:
				Console.WriteLine("1");
				if (i &gt; 0)
					goto LBL4;
				Console.WriteLine("2");
				break;

			case 3:
				Console.WriteLine("3");
			LBL4:
				Console.WriteLine("4");
				return 0;
		}
	LBL4:
		Console.WriteLine("4");
		return 1;
	}
}

</string>
    <string>// 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);
	}
}
</string>
    <string>// 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);
	}
}
</string>
    <string>// 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);
	}
}
</string>
    <string>// CS0158: The label `start' shadows another label by the same name in a contained scope
// Line: 9

class ClassMain {
        public static void Main() {
                start:
                {
                        start:  
                        goto start;
                }
        }
}

</string>
  </Examples>
</ErrorDocumentation>