[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / tests / dtest-055.cs
1 using System;
2
3 struct S<T>
4 {
5 }
6
7 abstract class B<T1, T2>
8 {
9         public abstract void Foo<U> (U x) where U : T1, T2;
10 }
11
12 class C : B<S<object>, S<dynamic>>
13 {
14         public override void Foo<U> (U x)
15         {
16         }
17
18         public static int Main ()
19         {
20                 var m = typeof (C).GetMethod ("Foo");
21                 var ta = m.GetGenericArguments ()[0].GetGenericParameterConstraints ();
22                 if (ta.Length != 1)
23                         return 1;
24                 
25                 Console.WriteLine ("ok");
26                 return 0;
27         }
28 }