[Mono-list] Syntax Error???

Daniel Morgan danmorg@sc.rr.com
Sat, 22 Feb 2003 17:06:31 -0500


You have to put your code in a method block.  For example:

using System;

using Gtk;
using GtkSharp;

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

-----Original Message-----
From: mono-list-admin@lists.ximian.com
[mailto:mono-list-admin@lists.ximian.com]On Behalf Of Santiago Erquicia
Sent: Saturday, February 22, 2003 4:48 PM
To: mono-list@lists.ximian.com
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
(Mono.CSharp.yyParser.yyInput)
in <0x00075> 00 Mono.CSharp.CSharpParser:parse ()

Compilation failed: 1 error(s), 0 warnings