summaryrefslogtreecommitdiff
path: root/mcs/errors/cs1622-2.cs
blob: 55ce8453348a4516bb8213a34f0eb61586e16761 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// CS1622: Cannot return a value from iterators. Use the yield return statement to return a value, or yield break to end the iteration
// Line: 14

using System.Collections;

public class C
{
	internal static IEnumerable PrivateBinPath
	{
		get
		{
			string a = "a";
			if (a == null)
				return false;
			yield return a;
		}
	}
}