pascalabcnet/TestSuite/try_in_lambda_in_yield.pas

15 lines
259 B
ObjectPascal
Raw Normal View History

2019-06-21 20:32:01 +03:00
function f1: sequence of byte; //Ошибка: Функции с yield не могут содержать блоков try..except и try..finally
begin
yield 0;
var p: procedure := ()->
begin
try
except
end
end;
end;
begin
end.