[Mono-list] Syntax Error???
Sat, 22 Feb 2003 17:06:31 -0500
You have to put your code in a method block. For example:
public class FileSelection
public void SomeMethod()
FileSelection window = new FileSelection();
[mailto:email@example.com]On Behalf Of Santiago Erquicia
Sent: Saturday, February 22, 2003 4:48 PM
Subject: [Mono-list] Syntax Error???
I am having problems with a simple class under mono 0.19. I copied the
FileSelection class from test in order to try something. When I tried to
compile it there was some syntax errors. I tried to trim it down and nothing
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
in <0x00075> 00 Mono.CSharp.CSharpParser:parse ()
Compilation failed: 1 error(s), 0 warnings