[Mono-list] Mono parsing error on multiline if

Chris Howie cdhowie at gmail.com
Fri Oct 16 20:17:06 EDT 2009

On Fri, Oct 16, 2009 at 6:15 PM, Smjert <smjert30 at libero.it> wrote:
> I have a multiline if with lots of condition and the Mono compiler (1.9.1)
> when compile the source code stops giving "error CS8025: Parsing error".
> Here's the example:
> if(a = b || b != c
> || d < c
> ....
> || f > h)
> return true; <--- this is the line where the parsing error occurs.
> This source code compile with the Windows C# compiler.. what's wrong with
> it?
> Is the problem the conditions splitted into multiple lines (but they are a
> lot... it will result "ugly" to have them on one line)?

The newlines should be ignored entirely.  Can you paste the entire
method so we can see the code?

Chris Howie

More information about the Mono-list mailing list