<?xml version="1.0"?>
<ErrorDocumentation xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ErrorName>CS0126</ErrorName>
  <Examples>
    <string>// CS0126: An object of a type convertible to `int' is required for the return statement
// Line: 7

class X {
	int Y ()
	{
		return;
	}
}
</string>
    <string>// CS0126: An object of a type convertible to `string' is required for the return statement
// Line: 7

using System.Threading.Tasks;

class A
{
	static async Task&lt;string&gt; Test ()
	{
		await CallAsync ();
		return;
	}
	
	static Task&lt;string&gt; CallAsync ()
	{
		return null;
	}
}
</string>
    <string>// CS0126: An object of a type convertible to `int' is required for the return statement
// Line: 15

using System.Threading.Tasks;

class MainClass
{
    public static void Main ()
    {
        Task&lt;C&gt; v = null;

        Task.Run (async () =&gt; {
            await Task.Yield ();
            if (v == null) {
                return;
            }

            return 1;
        });
    }
}

public class C
{
    string Id { get; set; }
}</string>
  </Examples>
</ErrorDocumentation>