<?xml version="1.0"?>
<ErrorDocumentation xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ErrorName>CS1593</ErrorName>
  <Examples>
    <string>// CS1593: Delegate `System.Action&lt;System.Threading.Tasks.Task&gt;' does not take `0' arguments
// Line: 17

using System;
using System.Threading.Tasks;
using System.Collections.Generic;

namespace CrashRepro.Core
{
	public class X
	{		
		async void Foo ()
		{
			var pushes = await Run ().ContinueWith (l =&gt;
			{
				for (int i = 0; i &lt; 1; ++i)
					Run ().ContinueWith(() =&gt; { });
			});
		}

		Task Run ()
		{
			return null;
		}
	}
}

</string>
    <string>// CS1593: Delegate `System.Action&lt;int&gt;' does not take `2' arguments
// Line: 13

using System;

public class Test
{
	public static void Main ()
	{
		Action&lt;int&gt; a = (i) =&gt; {};

		dynamic d = 1;
		a (d, true);
	}
}
</string>
    <string>// CS1593: Delegate `System.Func&lt;int,int&gt;' does not take `2' arguments
// Line: 11


using System;

class C
{
	static void Main (string [] args)
	{
		M ((x, y) =&gt; 2);
	}

	static void M (Func&lt;int, int&gt; a)
	{
	}
}
</string>
    <string>// CS1593: Delegate `Blah.MyDelegate' does not take `1' arguments
// Line : 21

using System;

public class Blah {

	public delegate int MyDelegate (int i, int j);
	
	public int Foo (int i, int j)
	{
		return i+j;
	}

	public static int Main ()
	{
		Blah i = new Blah ();

		MyDelegate del = new MyDelegate (i.Foo);

		int number = del (2);

		if (number == 5)
			return 0;
		else
			return 1;

	}

}
</string>
    <string>// CS1593: Delegate `System.Action&lt;System.Exception,object&gt;' does not take `1' arguments
// Line: 16

using System;
using System.Threading.Tasks;

class MainClass
{
	public static void Run (Func&lt;Task&gt; func)
	{
	}

	public static void Main (string[] args)
	{
		Run(async () =&gt; {
			Function(async (handle) =&gt; {
			});
		});
	}

	public static void Function (Action&lt;Exception, object&gt; callback)
	{
	}
}
</string>
    <string>// CS1593: Delegate `D' does not take `0' arguments
// Line: 11
//
// The delegate has an explicit signature with 0 arguments, so it 
// can not be assigned to a delegate with one argument.
//
delegate void D (int x);

class X {
	static void Main ()
	{
		D d2 = delegate () {};
	}
}
</string>
  </Examples>
</ErrorDocumentation>