[Mono-list] Syntax Error???

Santiago Erquicia serquicia@fibertel.com.ar
Sat, 22 Feb 2003 18:48:00 -0300


--------------Boundary-00=_0KCQH0GVIDMEFP4BQ9QP
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

I am having problems with a simple class under mono 0.19.  I copied the=20
FileSelection class from test in order to try something.  When I tried to=
=20
compile it there was some syntax errors. I tried to trim it down and noth=
ing=20
happended.  I am attaching the file.

Is this a parser bug or did I missed something?

This is the error:

syntax error, expecting OPERATOR THIS OPEN_BRACKET STAR IDENTIFIER
gui_file_selection.cs(9) error CS-0025: : Parsing error
Mono.CSharp.yyParser.yyException: irrecoverable syntax error
in <0x00701> 00 Mono.CSharp.CSharpParser:yyparse=20
(Mono.CSharp.yyParser.yyInput)
in <0x00075> 00 Mono.CSharp.CSharpParser:parse ()

Compilation failed: 1 error(s), 0 warnings

--------------Boundary-00=_0KCQH0GVIDMEFP4BQ9QP
Content-Type: text/x-c++src;
  charset="us-ascii";
  name="gui_file_selection.cs"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="gui_file_selection.cs"

using System;

using Gtk;
using GtkSharp;

public class FileSelection
{
	FileSelection window = new FileSelection();
	window.ShowAll();
}

--------------Boundary-00=_0KCQH0GVIDMEFP4BQ9QP--