pascalabcnet/TestSuite/CompilationSamples/delegates12.pas
Бондарев Иван 74b29425e7 fix #1407
2019-01-06 11:07:07 +01:00

8 lines
139 B
ObjectPascal

function f(x: real) := x*2;
function g(x: real) := x+1;
begin
var fg: real -> real := f*g;
assert(abs(fg(1)-4) < 0.00000001);
end.