1 // Bugs #77466 and #77460.
3 using System.Reflection;
4 using System.Collections.Generic;
14 public static void foo<T> ()
18 public static int Test ()
20 MethodInfo mi = typeof (Tests).GetMethod ("foo");
21 if (!mi.IsGenericMethod)
23 if (!mi.IsGenericMethodDefinition)
25 MethodInfo mi2 = mi.MakeGenericMethod (new Type[] { typeof (int) });
26 if (!mi2.IsGenericMethod)
28 if (mi2.IsGenericMethodDefinition)
31 MethodInfo mi3 = typeof (Foo<int>).GetMethod ("Test");
32 if (mi3.IsGenericMethod)
34 if (mi3.IsGenericMethodDefinition)
40 public static int Main ()
45 Console.WriteLine ("OK");
47 Console.WriteLine ("ERROR: {0}", result);