[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / tests / gtest-220.cs
1 public class A<T1>
2 {
3         public T1 a;
4
5         public class B<T2> : A<T2>
6         {
7                 public T1 b;
8
9                 public class C<T3> : B<T3>
10                 {
11                         public T1 c;
12                 }
13         }
14 }
15
16 class PopQuiz
17 {
18         public static int Main()
19         {
20                 A<int>.B<char>.C<bool> o = new A<int>.B<char>.C<bool>();
21                 string s = o.a.GetType().FullName;
22                 System.Console.WriteLine(s);
23                 if (s != "System.Boolean")
24                         return 1;
25
26                 s = o.b.GetType().FullName;
27                 System.Console.WriteLine(s);
28                 if (s != "System.Char")
29                         return 2;
30                 
31                 s = o.c.GetType().FullName;
32                 System.Console.WriteLine();
33                 if (s != "System.Int32")
34                         return 3;
35                 
36                 return 0;
37         }
38 }