[Mono-bugs] [Bug 51113][Min] New - mcs doesn't flag cs1023 correctly
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sat, 7 Feb 2004 12:41:46 -0500 (EST)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by miguel@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=51113
--- shadow/51113 2004-02-07 12:41:46.000000000 -0500
+++ shadow/51113.tmp.21459 2004-02-07 12:41:46.000000000 -0500
@@ -0,0 +1,35 @@
+Bug#: 51113
+Product: Mono/Compilers
+Version: unspecified
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity: Unknown
+Priority: Minor
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: gonzalo@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: mcs doesn't flag cs1023 correctly
+
+Try compiling this:
+class Test
+{
+ static void Main ()
+ {
+ for (int i = 0; i < 1000000; i++)
+ int k = i;
+ }
+}
+
+Actual results:
+mcsbug1.cs(8) error CS1002: Expecting `;'
+Compilation failed: 1 error(s), 0 warnings
+
+Expected results:
+mcsbug1.cs(8) error CS1023: an embedded statement cannot be a declaration
+or a labeled statement.