[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / tests / gtest-332.cs
1 using System;
2
3 class C<T>
4 {
5         public Type Test ()
6         {
7                 T[,] a = new T[0, 0];
8                 return a.GetType ();
9         }
10 }
11
12 class M
13 {
14         public static void Main ()
15         {
16                 C<string> c1 = new C<string> ();
17                 C<bool> c2 = new C<bool> ();
18                 if (c1.Test () != typeof (string[,]))
19                         throw new InvalidCastException ();
20                 if (c2.Test () != typeof (bool[,]))
21                         throw new InvalidCastException ();
22         }
23 }