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: 9bcffc16b2325933bb1f1bcea7f879c65c44ad27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// cs1662.cs: Cannot convert anonymous method block to delegate type `D' because some of the return types in the block are not implicitly convertible to the delegate return type
// 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.
	}
}