pascalabcnet/TestSuite/lambdas_generics1.pas
Бондарев Иван e6e67c193c initial commit
2015-05-14 21:35:07 +02:00

9 lines
135 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.