Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / tests / bug-473999.2.cs
1 using System;
2 using System.Reflection;
3
4 public class Program
5 {
6     static void Main()
7     {
8             //Console.WriteLine ("start");
9             Test(""); // this one works.
10             //Console.WriteLine ("halfway");
11             Test(""); // this one throws.
12             //Console.WriteLine ("done");
13     }
14
15     static public void Test<T>(T a)
16     {
17             Func<T> func = () => a;
18             //MethodInfo mi = func.Method;
19             //Console.WriteLine (mi.ToString ());
20             func.DynamicInvoke();
21     }
22 }