Fix in Recur Node declaration

This commit is contained in:
Michael Schimmel
2025-09-29 11:23:39 +02:00
parent 624af31243
commit e1a46da6f8
5 changed files with 2 additions and 13 deletions
-3
View File
@@ -269,9 +269,6 @@ var
i: Integer;
begin
// The binder ensures this is only in a tail position.
if not Node.IsTailCall then
raise EInvalidOperation.Create('Recur has to be a tail call');
SetLength(argValues, Length(Node.Arguments));
for i := 0 to High(Node.Arguments) do
argValues[i] := Node.Arguments[i].Accept(Self);