mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-06 20:28:14 +02:00
25 lines
247 B
ObjectPascal
25 lines
247 B
ObjectPascal
{ %FAIL }
|
|
{$mode objfpc}
|
|
type
|
|
to1 = class
|
|
procedure p;virtual;
|
|
end;
|
|
|
|
to2 = class(to1)
|
|
function p : longint;override;
|
|
end;
|
|
|
|
procedure to1.p;
|
|
|
|
begin
|
|
end;
|
|
|
|
function to2.p : longint;
|
|
|
|
begin
|
|
end;
|
|
|
|
begin
|
|
end.
|
|
|