pascalabcnet/TestSuite/lambdas_closures_14.pas
Бондарев Иван 9477f6982b fix #850
2018-05-21 14:41:43 +02:00

17 lines
400 B
ObjectPascal
Raw Permalink 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.

type
t1 = class//не работает только в классе
const c1 = 5;
procedure p1;
begin
var arr1 := ArrGen(1, i -> c1);//В данной версии компилятора не поддерживается замыкание данного типа символов
assert(arr1[0] = 5);
end;
end;
begin
var t := new t1;
t.p1;
end.