1 // Compiler options: -r:gtest-582-lib.dll
4 using System.Reflection;
6 public class G1 : GC<C>
10 public class GC<T> where T : C
16 public static int Main()
18 var constraints = typeof (GC<>).GetGenericArguments ()[0].GetGenericParameterConstraints ();
19 if (constraints.Length != 1)
21 if (constraints [0] != typeof (C))
24 Console.WriteLine ("ok");