[Mono-bugs] [Bug 74939][Wis] Changed - CS1028 when there is an #if
for the #endif
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Fri May 13 18:12:47 EDT 2005
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 kornelpal at hotmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=74939
--- shadow/74939 2005-05-13 17:36:40.000000000 -0400
+++ shadow/74939.tmp.18736 2005-05-13 18:12:47.000000000 -0400
@@ -27,6 +27,26 @@
------- Additional Comments From kornelpal at hotmail.com 2005-05-13 15:38 -------
Correction: The result is the same for mcs and gmcs. csc compiles it
as expected.
------- Additional Comments From duncan at ximian.com 2005-05-13 17:36 -------
Could you post the errors?
+
+------- Additional Comments From kornelpal at hotmail.com 2005-05-13 18:12 -------
+Errors:
+ComIStreamMarshaler.cs(632) error CS1028: Unexpected processor
+directive (no #if for this #endif)
+ComIStreamMarshaler.cs(757) error CS1028: Unexpected processor
+directive (no #if for this #endif)
+ComIStreamMarshaler.cs(783) error CS1028: Unexpected processor
+directive (no #if for this #endif)
+Compilation failed: 3 error(s), 0 warnings
+
+This causes the errors (but I think only is some contexts):
+#if NET_2_0
+(IStream)
+#else
+(UCOMIStream)
+#endif
+
+If I move the parentheses out of the conditional code it compiles
+without errors.
More information about the mono-bugs
mailing list