[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / tests / gtest-603.cs
1 using System;
2
3 public class A<T>
4 {
5         T value;
6
7         public A (T value)
8         {
9                 this.value = value;
10         }
11
12         public static explicit operator T (A<T> source)
13         {
14                 return source.value;
15         }
16 }
17
18 public class Test
19 {
20         public static int Main ()
21         {
22                 var source = new A<int?> (3);
23                 if (N ((int)source) != 3)
24                         return 1;
25
26                 return 0;
27         }
28
29         static int N (int value)
30         {
31                 return value;
32         }
33 }