[Mono-bugs] [Bug 53694][Wis] New - CS1024: region preprocessor derective prohibits whitespaces between '#' and "region"
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sun, 1 Feb 2004 05:52:11 -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 atsushi@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=53694
--- shadow/53694 2004-02-01 05:52:11.000000000 -0500
+++ shadow/53694.tmp.9582 2004-02-01 05:52:11.000000000 -0500
@@ -0,0 +1,54 @@
+Bug#: 53694
+Product: Mono/Compilers
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: atsushi@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: CS1024: region preprocessor derective prohibits whitespaces between '#' and "region"
+
+mcs does not allow whitespaces between '#' and "region".
+(Possibly other preprocessor directives have the same problem.)
+
+from http://www.jaggersoft.com/csharp_standard/9.5.6.htm
+
+pp-start-region ::
+whitespaceopt # whitespaceopt region pp-message
+pp-end-region ::
+whitespaceopt # whitespaceopt endregion pp-message
+
+Compile this source:
+
+using System;
+
+public class Test
+{
+# region Test
+ public static void Main ()
+ {
+ }
+# endregion
+}
+
+
+Actual Results:
+
+mcs region.cs
+region.cs(6) error CS1024: Preprocessor directive expected (got: )
+region.cs(10) error CS1024: Preprocessor directive expected (got: )
+Compilation failed: 2 error(s), 0 warnings
+
+Expected Results:
+no compilation error.
+
+How often does this happen?
+always