summaryrefslogtreecommitdiff
path: root/mcs/errors/cs1643.cs
blob: 261339411f351f15f7e373270d2db65b1d8e0182 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// CS1643: 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;
		};
	}
}