pascalabcnet/TestSuite/formatter_tests/input/lambdas_generics1.pas

9 lines
135 B
ObjectPascal
Raw Permalink Normal View History

2015-05-14 22:35:07 +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.