fpc/tests/tbs/tb0668b.pp
2020-02-14 16:49:07 +00:00

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.