mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 00:08:16 +02:00
21 lines
236 B
ObjectPascal
21 lines
236 B
ObjectPascal
{ %NORUN }
|
|
|
|
program tb0668b;
|
|
|
|
{$mode objfpc}
|
|
|
|
generic procedure FreeAndNil<T: class>(var Obj: T);
|
|
begin
|
|
end;
|
|
|
|
procedure FreeAndNil(var Obj);
|
|
begin
|
|
end;
|
|
|
|
var
|
|
t: TObject;
|
|
begin
|
|
FreeAndNil(t);
|
|
specialize FreeAndNil<TObject>(t);
|
|
end.
|