Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs0165-11.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ad5c1ee30154ac734b045c7fd901f39dce4df48a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// cs0165-11.cs: Use of unassigned local variable `fb'
// Line: 12
using System.Collections;

public class EntryPoint {
  public static void Main() {
    ArrayList fields = new ArrayList();

    Field fb;
    while (fields.Count > 0) {
      fb = (Field) fields[0];
    }

    if (fb.Name != "b") {
      System.Console.WriteLine ("shouldn't compile here.");
    }
  }

  public class Field
  {
    public string Name;
  }
}