[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / tests / gtest-036.cs
1 //
2 // This is another "important" test: it checks whether we set
3 // TypeContainer.CurrentType correctly when compiling the
4 // declaration of `Stack'.
5 //
6
7 class Stack<T>
8 {
9         //
10         // This must be encoded as a TypeSpec (Stack<!0>) and
11         // not as a TypeDef.
12         //
13         // PEVerify the resulting executable on Windows to make sure !
14         //
15         void Hello (Stack<T> stack)
16         {
17         }
18
19         void Test ()
20         {
21                 Hello (this);
22         }
23 }
24
25 class X
26 {
27         public static void Main ()
28         { }
29 }