[interp] Reduce computation under calc_section mutex
[mono-project.git] / mcs / tests / gtest-582.cs
blob5534de49c19b9bc3a5efcd571abdcd57e038f6ee
1 // Compiler options: -r:gtest-582-lib.dll
3 using System;
4 using System.Reflection;
6 public class G1 : GC<C>
10 public class GC<T> where T : C
14 class Program
16 public static int Main()
18 var constraints = typeof (GC<>).GetGenericArguments ()[0].GetGenericParameterConstraints ();
19 if (constraints.Length != 1)
20 return 1;
21 if (constraints [0] != typeof (C))
22 return 2;
24 Console.WriteLine ("ok");
25 return 0;