2010-03-07 Rodrigo Kumpera <rkumpera@novell.com>
[mcs.git] / errors / cs1622-2.cs
blob55ce8453348a4516bb8213a34f0eb61586e16761
1 // CS1622: Cannot return a value from iterators. Use the yield return statement to return a value, or yield break to end the iteration
2 // Line: 14
4 using System.Collections;
6 public class C
8 internal static IEnumerable PrivateBinPath
10 get
12 string a = "a";
13 if (a == null)
14 return false;
15 yield return a;