linux-packaging-mono/mono/tests/bug-473999.2.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

23 lines
462 B
C#

using System;
using System.Reflection;
public class Program
{
static void Main()
{
//Console.WriteLine ("start");
Test(""); // this one works.
//Console.WriteLine ("halfway");
Test(""); // this one throws.
//Console.WriteLine ("done");
}
static public void Test<T>(T a)
{
Func<T> func = () => a;
//MethodInfo mi = func.Method;
//Console.WriteLine (mi.ToString ());
func.DynamicInvoke();
}
}