On 9/22/07, Mattias Gaertner <[EMAIL PROTECTED]> wrote:
> On Sat, 22 Sep 2007 12:33:57 +0200
> ik <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> >
> > I'm using Lazarus (latest svn version) with GTK2, FPC 2.2.0, on linux
> > amd64.
> >
> > I have written in a class (mode of objfpc), a class function and the
> > syntax parser of Lazarus keep on having the following error:
> >
> > ### TCodeToolManager.HandleException: "identifier expected, but class
> > found" at Line=46 Col=
> >
> > While the compiler compiles the function without any errors, warnings
> > etc.. Is that a bug ? or should I configure/remove configuration on
> > something ? Or something else ?
>
> Can you give the example?
Sure :)
Here is a very very basic example:
{$MODE OBJFPC}
program classmethod;
type
TMyClass = class
public
class function A (const aParam : String) : Boolean; virtual;
end;
class function TmyClass.A(const aParam : String) : Boolean;
begin
Result := aParam <> '';
end;
begin
end.
When you'll place either your mouse cursor above the class function,
or try to complete a word, you will have the error.
One thing I forgot to mention (but you can see in this example) is
that it's a simple console application that originally wasn't created
by Lazarus (just like this example, that when I open it using Lazarus,
it have the above error).
>
>
> Mattias
>
Ido
--
http://ik.homelinux.org/
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives