[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / errors / cs0165-46.cs
1 // CS0165: Use of unassigned local variable `a'
2 // Line: 16
3
4 class Test
5 {
6         public static bool Foo (out int v)
7         {
8                 v = 0;
9                 return false;
10         }
11
12         static void Main()
13         {
14                 int a;
15                 bool b = false;
16                 if ((b || Foo (out a)) && b)
17                         return;
18                 else
19                         System.Console.WriteLine (a);
20         }
21 }