fix bootstrap
[mcs.git] / tests / gtest-anon-21.cs
blob359a78d4f308afe44328c2b94a59f104231005d8
1 using System;
2 using System.Collections.Generic;
4 internal delegate void EmptyDelegate ();
6 class BaseObject
8 public static int Main ()
10 int? i;
11 Query <BaseObject> (out i);
12 return 0;
15 static void Closure (EmptyDelegate x)
19 static List<T> Query<T> (out int? count) where T : BaseObject
21 count = 0;
22 List<T> results = new List<T> ();
23 Closure (delegate {
24 results.Add (MakeSomething<T> ());
25 });
26 return results;
29 static T MakeSomething<T> () where T : BaseObject
31 return null;