<?xml version="1.0" encoding="iso-8859-1"?>
<ErrorDocumentation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <ErrorName>CS0815</ErrorName>
  <Examples>
    <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: 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: 9


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

</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 `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>
    <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>
  </Examples>
</ErrorDocumentation>