[Mono-list] The following code should compile, shouldn't it?

Miguel de Icaza miguel@ximian.com
21 Dec 2002 14:07:36 -0500


Hello,

> Unfortunately, mcs dislikes it:
> 
> mcs ternaryif.cs
> syntax error, expecting ASSIGN OP_MULT_ASSIGN OP_DIV_ASSIGN 
> OP_MOD_ASSIGN OP_ADD_ASSIGN OP_SUB_ASSIGN OP_SHIFT_LEFT_ASSIGN 
> OP_SHIFT_RIGHT_ASSIGN OP_AND_ASSIGN OP_XOR_ASSIGN OP_OR_ASSIGN
> ternaryif.cs(20) error CS1002: Expecting `;'
> Compilation failed: 1 error(s), 0 warnings
> 
> Is mcs right to complain?

Its a parser bug, please file a bug report.

Miguel