fpc/tests/test/uanonfunc20.pp

22 lines
190 B
ObjectPascal

unit uanonfunc20;
{$mode objfpc}
interface
type
tbase = class
protected
function x: longint;
end;
implementation
function tbase.x: longint;
begin
result := 123;
end;
end.