[fpc-devel] local "class of" error?

Martin Friebe fpc at mfriebe.de
Tue Jun 2 14:07:39 CEST 2009

Not sure if this is intended, or just a wrong assumptions by the parser?

Procedure foo;
  TSomeClass = Class of TSome;
gives the error:  Error: Local class definitions are not allowed

But there is no Class declaration. (Not sure what you call "class of") 
TSome is declared elsewhere already.
Hence my question:
Is this intended to give an error? (or does the parser just see class 
and makes the assumption a new class will be declared?)

Best Regards

More information about the fpc-devel mailing list