<?xml version="1.0"?>
<ErrorDocumentation xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ErrorName>CS0841</ErrorName>
  <Examples>
    <string>// CS0841: A local variable `y' cannot be used before it is declared
// Line: 8

class X
{
   static void y () { }
   static void Main () {
     y ();
     int y = 5;
   }
}
</string>
    <string>// CS0841: A local variable `n' cannot be used before it is declared
// Line: 17

class MainClass
{
	public delegate void Fn (MainClass o);

	public static void Call (Fn f)
	{
		f(null);
	}

	public static void Main ()
	{
		Call (delegate (MainClass o) {
			n = o;
			MainClass n = new MainClass ();
		});
	}
}</string>
    <string>// CS0841: A local variable `y' cannot be used before it is declared
// Line: 8

public class C
{
	public static void Main ()
	{
	    const int x = y;
	    const int y = 1;
	}
}
</string>
    <string>// CS0841: A local variable `x' cannot be used before it is declared
// Line: 8
// Compiler options: -langversion:experimental

class X
{
	public static void Main ()
	{
		Foo (x, out var x);
	}

	static void Foo (int arg, out int value)
	{
		value = 3;
	}
}</string>
    <string>// CS0841: A local variable `v' cannot be used before it is declared
// Line: 9


public class Test
{
	static void Main ()
	{
		var v = ++v;
	}
}

</string>
    <string>// CS0841: A local variable `y' cannot be used before it is declared
// Line: 8

public class C
{
	public static void Main ()
	{
	    int x = y;
	    int y = 1;
	}
}
</string>
  </Examples>
</ErrorDocumentation>