pascalabcnet/TestSuite/lambdas_generics4.pas
Ivan Bondarev 4db76663d1 #2328
2021-01-06 14:20:07 +01:00

10 lines
343 B
ObjectPascal

uses System, System.Collections.Generic;
procedure p<X, Y> (a: X; b: Action<IEnumerable<Dictionary<X, Y>>>; c: Y);
begin
assert(b.GetType().ToString() = 'System.Action`1[System.Collections.Generic.IEnumerable`1[System.Collections.Generic.Dictionary`2[System.Int32,System.Int32]]]');
end;
begin
p(4, procedure(x) -> begin end, 5);
end.