pascalabcnet/TestSuite/formatter_tests/should/lambdas_generics1.pas

8 lines
139 B
ObjectPascal
Raw Permalink Normal View History

2022-04-15 16:04:36 +03:00
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.