Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs1662.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: defcc6558af175d133548773e742d6890fd08c2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// cs1662: Can not convert the anonymous method, as the returned value does not match the return type of the delegate
// Line: 11
//
// Return type mismatch.
//
delegate void D (int x);

class X {
	static void Main ()
	{
		D d6 = delegate (int x) { return x; }; // Return type mismatch.
	}
}