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

cs1643.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fbb8facd83bf7331305f99c44321a5fdc347782b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// cs1643.cs: Not all code paths return a value in anonymous method of type `X.T'
// Line: 12
using System;

class X {
	delegate int T ();

	static void Main ()
	{
		int a = 1;
		
		T t = delegate {
			if (a == 1)
				return 1;
		};
	}
}