pascalabcnet/TestSuite/formatter_tests/should/lambdas_generics1.pas
2022-04-15 15:04:36 +02:00

8 lines
139 B
ObjectPascal

procedure p<X, Y>(a: System.Func<X, Y>; b: System.Func<Y, X>; c: X);
begin
writeln(a(c));
end;
begin
p(x -> x, x -> 1.0, 4.0);
end.