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: b78db4a7008c86f3b3fc4f12c6b31c1edc83dfbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// cs1643.cs: Not all code paths return a value in anonymous method
// Line: 12
using System;

class X {
	delegate int T ();

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