2010-06-03 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / gcs1624.cs
blobbe1f9a86c11ffeed6d071bb237b04e5a27f246cb
1 // CS1624: The body of `C.Test<TSource>(System.Collections.Generic.IEnumerable<TSource>)' cannot be an iterator block because `TSource' is not an iterator interface type
2 // Line: 8
4 using System.Collections.Generic;
6 public class C
8 public static TSource Test<TSource>(IEnumerable<TSource> source)
10 foreach (TSource element in source)
11 yield return element;