mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 06:28:55 +02:00
9 lines
167 B
ObjectPascal
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.
|