fpc/tests/webtbs/tw39853.pp

9 lines
167 B
ObjectPascal

{ %opt=-vh -Sewh }
{$modeswitch anonymousfunctions}
var
p: procedure(const s: string);
begin
p := procedure(const s: string) begin writeln(s); end;
p('test');
end.