pascalabcnet/TestSuite/CompilationSamples/ShortFunLambdaProc.pas

8 lines
117 B
ObjectPascal
Raw Permalink Normal View History

2017-03-08 00:30:47 +03:00
function f: procedure := ()->write(1);
function f1: integer->integer := x->x;
begin
f()();
Print(f1()(2));
end.