2009-11-20 Marek Safar <marek.safar@gmail.com>
[mcs.git] / errors / cs0165-11.cs
blobad5c1ee30154ac734b045c7fd901f39dce4df48a
1 // cs0165-11.cs: Use of unassigned local variable `fb'
2 // Line: 12
3 using System.Collections;
5 public class EntryPoint {
6 public static void Main() {
7 ArrayList fields = new ArrayList();
9 Field fb;
10 while (fields.Count > 0) {
11 fb = (Field) fields[0];
14 if (fb.Name != "b") {
15 System.Console.WriteLine ("shouldn't compile here.");
19 public class Field
21 public string Name;