X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Ferrors%2Fcs0165-11.cs;h=b9b7ba180c8e14c0500098d111580e7204de3140;hb=797c536463feb7ebf7b3aafdee518404389b726e;hp=ad5c1ee30154ac734b045c7fd901f39dce4df48a;hpb=987f8c63e214937c50dcb308149f7558a2cbba41;p=mono.git diff --git a/mcs/errors/cs0165-11.cs b/mcs/errors/cs0165-11.cs index ad5c1ee3015..b9b7ba180c8 100644 --- a/mcs/errors/cs0165-11.cs +++ b/mcs/errors/cs0165-11.cs @@ -1,24 +1,27 @@ -// cs0165-11.cs: Use of unassigned local variable `fb' -// Line: 12 +// CS0165: Use of unassigned local variable `fb' +// Line: 17 + using System.Collections; -public class EntryPoint { - public static void Main() { - ArrayList fields = new ArrayList(); +public class EntryPoint +{ + public static void Main () + { + ArrayList fields = new ArrayList (); - Field fb; - while (fields.Count > 0) { - fb = (Field) fields[0]; - } + Field fb; + while (fields.Count > 0) { + fb = (Field) fields[0]; + } - if (fb.Name != "b") { - System.Console.WriteLine ("shouldn't compile here."); - } - } + if (fb.Name != "b") { + System.Console.WriteLine ("shouldn't compile here."); + } + } - public class Field - { - public string Name; - } + public class Field + { + public string Name; + } }