2010-06-03 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / cs0177-5.cs
blob92b72e63482bf0e8b71edc890678c0933b020acf
1 // cs0177-5.cs: The out parameter `a' must be assigned to before control leaves the current method
2 // Line: 21
4 using System;
6 class OutputParam
8 public static void Main(string[] args)
10 int a;
11 Method(out a);
12 Console.WriteLine(a);
15 public static void Method(out int a)
17 int b;
19 try {
20 b = 5;
21 } catch (Exception) { return; }
23 a = b;