pascalabcnet/TestSuite/generics77.pas
Ivan Bondarev 1609eddc9d #3064
2024-03-31 10:31:22 +02:00

14 lines
255 B
ObjectPascal
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var i: integer := 0;
// Вместо IntRange - любой тип НЕ из .dll
// Обязательно params
procedure p1(params a: array of IntRange);
begin
i := a[0].High;
end;
begin
p1(Lst&<IntRange>(1..3).ToArray);
assert(i = 3);
end.