pascalabcnet/TestSuite/yield_lam_capt0.pas
Mikhalkovich Stanislav 5dc6eda5a6 fix #2085
2020-06-25 14:51:55 +03:00

10 lines
147 B
ObjectPascal

// #2085
function f1: sequence of integer;
begin
var b: byte := 5;
yield Arr(3).Select(b->b).First;
end;
begin
Assert(f1.First = 3);
end.