[Mono-bugs] [Bug 30383][Min] New - #if/#endif, #region/#endregion
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
16 Sep 2002 15:36:36 -0000
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 gonzalo@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=30383
--- shadow/30383 Mon Sep 16 11:36:36 2002
+++ shadow/30383.tmp.1541 Mon Sep 16 11:36:36 2002
@@ -0,0 +1,51 @@
+Bug#: 30383
+Product: Mono/MCS
+Version: unspecified
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Minor
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: gonzalo@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: #if/#endif, #region/#endregion
+
+Description of Problem:
+if and region directives are not working correctly.
+
+As a first test:
+class T {
+#if EJEM
+ static int Main() { return 1; }
+#else
+ static int Main() { return 2;}
+#endregion
+}
+
+This compiles with mcs.
+csc says:
+otro.cs(6,2): error CS1027: #endif directive expected
+otro.cs(8,1): error CS1027: #endif directive expected
+
+This other test also fails:
+class T {
+#if EJEM
+ static int Main() { return 1; }
+#region This should be closed before the else
+#else
+ static int Main() { return 2;}
+#endregion
+#endif
+}
+
+This time, mcs says:
+error CS5001: Program otromas.exe does not have an entry point defined !!!
+
+and csc says:
+otromas.cs(5,2): error CS1038: #endregion directive expected