<?xml version="1.0"?>
<ErrorDocumentation xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ErrorName>CS0815</ErrorName>
  <Examples>
    <string>// CS0815: An implicitly typed local variable declaration cannot be initialized with `anonymous method'
// Line: 8

public class Test
{
	static void Main ()
	{
		var l = x =&gt; x + 1;
	}
}

</string>
    <string>// CS0815: An implicitly typed local variable declaration cannot be initialized with `anonymous method'
// Line: 11

using System;
using System.Threading.Tasks;

class X
{
	public static void Main ()
	{
		Task.Run(async () =&gt; { var a = async () =&gt; { }; Console.WriteLine(a); });
	}
}</string>
    <string>// CS0815: An implicitly typed local variable declaration cannot be initialized with `default'
// Line: 9
// Compiler options: -langversion:latest

static class X
{
	public static void Main ()
	{
		var x = default;
	}
}</string>
    <string>// CS0815: An implicitly typed local variable declaration cannot be initialized with `method group'
// Line: 8

public class Tests
{
	public static void Main ()
	{
		var d = Main;
	}
}
</string>
    <string>// CS0815: An implicitly typed local variable declaration cannot be initialized with `(int, method group)'
// Line: 8

class XX
{
	public static void Main ()
	{
		var m = (1, Main);
	}
}</string>
    <string>// CS0815: An implicitly typed local variable declaration cannot be initialized with `void'
// Line: 9


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

	static void Foo ()
	{
	}
}

</string>
    <string>// CS0815: An implicitly typed local variable declaration cannot be initialized with `anonymous method'
// Line: 9


public class Test
{
	static void Main ()
	{
		var d = delegate {};
	}
}

</string>
    <string>// CS0815: An implicitly typed local variable declaration cannot be initialized with `null'
// Line: 9


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

</string>
    <string>// CS0815: An implicitly typed local variable declaration cannot be initialized with `void'
// Line: 17

using System;
using System.Collections.Generic;

class A
{
	static void Test (Action a)
	{
	}

	public static void Main ()
	{
		Test (() =&gt; {
			List&lt;string&gt; l = null;
			var res = l.ForEach (g =&gt; { });
		});
	}
}
</string>
  </Examples>
</ErrorDocumentation>