Bugzilla – Bug 311040
mono bug with 'count++'
Last modified: 2007-09-15 21:24:23 UTC
---- Reported by manyoso@yahoo.com 2002-04-12 21:40:27 MST ---- Hello, First, the code ;-) using System; public class CountTest { public static void Main(string[] args) { int count; while (count != 10) Console.WriteLine(count++); } } Second, the problem ;-) run that with mint and you get the expected output. run that with mono and output is well.... buggy :-) Cheers, Adam ---- Additional Comments From manyoso@yahoo.com 2002-04-12 21:59:03 MST ---- it looks like the bug is with mcs/mint. the code should not compile. I initialized count and now mono runs it just fine. it seems mcs is teaching me bad habits ;-) sorry if this has already been reported. ---- Additional Comments From lupus@ximian.com 2002-04-13 07:05:01 MST ---- *** This bug has been marked as a duplicate of https://bugzilla.novell.com/show_bug.cgi?id=MONO22724 *** Unknown operating system unknown. Setting to default OS "Other". This bug was marked DUPLICATE in the database it was moved from. Changing resolution to "MOVED"