pascalabcnet/TestSuite/yield_break2.pas

12 lines
134 B
ObjectPascal
Raw Permalink Normal View History

2018-12-17 00:27:40 +03:00
function f1: sequence of byte;
begin
while true do
begin
yield 1;
break;
end;
end;
begin
Assert(f1.First=1);
end.