Updated with review feedback.
[mono.git] / mcs / errors / cs0165-47.cs
1 // CS0165: Use of unassigned local variable `a'
2 // Line: 17
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
17                 if ((b && Foo (out a)) || b) {
18                         System.Console.WriteLine (a);
19                 }
20         }
21 }