pascalabcnet/TestSuite/yieldwithconstructor.pas

17 lines
222 B
ObjectPascal
Raw Permalink Normal View History

2018-01-06 14:02:18 +03:00
type
t1 = class
public constructor(a: object);
begin
end;
public function f1: sequence of byte;
begin
yield 0;
end;
end;
begin
Assert(t1.Create(nil).f1.First = 0);
end.