Bugzilla – Bug 313169
[PATCH] mcs doesn't flag cs1023 correctly
Last modified: 2007-09-15 21:24:23 UTC
---- Reported by gonzalo@ximian.com 2003-11-18 13:33:43 MST ---- Try compiling this: class Test { static void Main () { for (int i = 0; i < 1000000; i++) int k = i; } } Actual results: mcshttp://bugzilla.ximian.com/show_bug.cgi?id=1.cs(8) error CS1002: Expecting `;' Compilation failed: 1 error(s), 0 warnings Expected results: mcshttp://bugzilla.ximian.com/show_bug.cgi?id=1.cs(8) error CS1023: an embedded statement cannot be a declaration or a labeled statement. ---- Additional Comments From bmaurer@users.sf.net 2004-03-28 20:43:58 MST ---- Created an attachment (id=165173) patch ---- Additional Comments From bmaurer@users.sf.net 2004-03-28 20:45:01 MST ---- simple jay hackery. baulig this is for you ---- Additional Comments From bmaurer@users.sf.net 2004-03-28 20:57:45 MST ---- in cvs. Imported an attachment (id=165173)