Merge pull request #3585 from lateralusX/jlorenss/win-counter-warning
[mono.git] / mcs / errors / cs0177-4.cs
1 // CS0177: The out parameter `f' must be assigned to before control leaves the current method
2 // Line: 5
3
4 class C {
5         public static void test (int a, out float f)
6         {
7                 do {
8                         // CS0177
9                         if (a == 8) {
10                                 System.Console.WriteLine ("Hello");
11                                 return;
12                         }
13                 } while (false);
14
15                 f = 1.3F;
16                 return;
17         }
18 }
19