Merge pull request #5693 from lateralusX/lateralusX/disable-stack-overflow-win-x64
[mono.git] / mcs / errors / cs0165-11.cs
1 // CS0165: Use of unassigned local variable `fb'
2 // Line: 17
3
4 using System.Collections;
5
6 public class EntryPoint
7 {
8         public static void Main ()
9         {
10                 ArrayList fields = new ArrayList ();
11
12                 Field fb;
13                 while (fields.Count > 0) {
14                         fb = (Field) fields[0];
15                 }
16
17                 if (fb.Name != "b") {
18                         System.Console.WriteLine ("shouldn't compile here.");
19                 }
20         }
21
22         public class Field
23         {
24                 public string Name;
25         }
26 }
27