2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git] / errors / cs0165-10.cs
blob3ea47758a4f504cf9f8001dd08c04830955d8db0
1 // cs0165-10.cs: Use of unassigned local variable `fb'
2 // Line: 15
3 using System.Collections;
5 public class EntryPoint {
6 public static void Main() {
7 ArrayList fields = new ArrayList();
9 Field fb;
10 for (int i = 0; i < fields.Count; i++) {
11 if (((Field) fields[i]).Name == "abc") {
12 fb = (Field) fields[i];
13 break;
17 if (fb.Name != "b") {
21 public class Field
23 public string Name;