[fpc-pascal] bug or feature?

Michael Van Canneyt michael at freepascal.org
Sat Feb 12 12:14:14 CET 2022



On Sat, 12 Feb 2022, Mattias Gaertner via fpc-pascal wrote:

> Hi,
>
> This can't be right, can it?
>
> type
>  TBird = class
>    procedure Fly;
>  end;
>  TEagle = TBird; // alias
>
> procedure TEagle.Fly;
> begin
> end;

Personally, I would not allow this. 
But Delphi compiles and runs it...

Maybe something to check for {$mode objfpc} =-)

Michael.


More information about the fpc-pascal mailing list