2009-02-10 Jeffrey Stedfast <fejj@novell.com>
[mono-project/dkf.git] / mcs / tests / ltest-09.cs
blob40e43dd499330e98f356e31b6577c50907d46b51
2 using System.Collections.Generic;
4 delegate TD Func<TD>();
5 delegate TR Func<TA,TR>(TA arg);
7 public class C
9 static IEnumerable<T> Test<T> (T t)
11 return null;
14 static IEnumerable<T> Test<T> (Func<T> f)
16 return null;
19 static IEnumerable<T> Test2<T> (Func<T, T> f)
21 return null;
24 public static void Main ()
26 IEnumerable<int> ie = Test (1);
27 IEnumerable<string> se;
28 se = Test (() => "a");
29 se = Test (delegate () { return "a"; });
30 se = Test2 ((string s) => "s");