fpc/tests/webtbs/tw30534.pp

19 lines
255 B
ObjectPascal

{ %NORUN }
{$MODE DELPHI}
type
TSmartPtr<T: class> = record
class operator Implicit(aValue: T): TSmartPtr<T>;
end;
class operator TSmartPtr<T>.Implicit(aValue: T): TSmartPtr<T>;
begin
end;
var
sp: TSmartPtr<TObject>;
begin
sp := nil;
end.