[Mono-bugs] [Bug 49487][Nor] New - Multiple local constant declaration rejected
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Thu, 9 Oct 2003 09:58:40 -0400 (EDT)
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 sestoft@dina.kvl.dk.
http://bugzilla.ximian.com/show_bug.cgi?id=49487
--- shadow/49487 2003-10-09 09:58:40.000000000 -0400
+++ shadow/49487.tmp.1619 2003-10-09 09:58:40.000000000 -0400
@@ -0,0 +1,50 @@
+Bug#: 49487
+Product: Mono/MCS
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: sestoft@dina.kvl.dk
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Multiple local constant declaration rejected
+
+Description of Problem:
+
+Mono mcs 0.26 rejects multiple local constant declarations. They should be
+permitted by the ECMA C# standard append A.2.5 local-constant-declaration.
+
+Steps to reproduce the problem:
+1. Compile the program below
+
+
+Actual Results:
+
+syntax error, expecting SEMICOLON
+Bug11.cs(7) error CS1002: Expecting `;'
+Compilation failed: 1 error(s), 0 warnings
+
+
+Expected Results:
+
+Compilation OK.
+
+
+Additional Information:
+
+Test case:
+
+using System;
+class MyTest {
+ public static void Main(String[] args) {
+ const int a = 5, b = 6;
+ Console.WriteLine(a + " " + b);
+ }
+}