mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 19:48:08 +02:00
24 lines
238 B
ObjectPascal
24 lines
238 B
ObjectPascal
{$mode objfpc}
|
|
type
|
|
tc = class sealed
|
|
end;
|
|
|
|
var
|
|
c : tc;
|
|
|
|
function f : tc;
|
|
begin
|
|
result:=tc.create;
|
|
end;
|
|
|
|
|
|
begin
|
|
c:=tc.create;
|
|
if not(c is tc) then
|
|
halt(1);
|
|
if not(f is tc) then
|
|
halt(1);
|
|
writeln('ok');;
|
|
end.
|
|
|