[fpc-pascal] Forward type not resolved

Florian Klaempfl florian at freepascal.org
Fri Mar 4 08:46:25 CET 2011


Am 04.03.2011 01:46, schrieb waldo kitty:
> On 3/3/2011 17:15, Leonardo M. Ramé wrote:
>> Sorry, the error was here:
>>
>>     TOnSqueeze = procedure (AQuote: TQuote); of object;
>>
>> This line should be:
>>
>>     TOnSqueeze = procedure (AQuote: TQuote) of object;
> 
> amazing what a misplaced semi-colon will do, eh? ;)
> 
> i would have thought that there would have been an additional error
> concerning the trailing "of object"... was there? did it give a clue as
> to the actual error of the misplaced semi-colon?

c:\fpc>fpc test.pp
Free Pascal Compiler version 2.4.2 [2010/11/10] for i386
Copyright (c) 1993-2010 by Florian Klaempfl
Target OS: Win32 for i386
Compiling test.pp
test.pp(7,12) Error: Forward type not resolved "TQuote"
test.pp(9,44) Fatal: Syntax error, "BEGIN" expected but "OF" found

Unfortunatly, Leonardo did not post a complete example but this is what
I get by guessing the missing parts.



More information about the fpc-pascal mailing list