[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / errors / cs0177-5.cs
1 // CS0177: The out parameter `a' must be assigned to before control leaves the current method
2 // Line: 21
3
4 using System;
5
6 class OutputParam
7 {
8     public static void Main(string[] args)
9     {
10          int a;
11          Method(out a);
12          Console.WriteLine(a);
13     }
14
15     public static void Method(out int a)
16     {
17         int b;
18
19         try {
20             b = 5;
21         } catch (Exception) { return; }
22
23         a = b;
24     }
25 }