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

delegate void D (int x);

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