* set proctypeoption for procvars

This commit is contained in:
Sven/Sarah Barth 2021-04-07 21:25:53 +02:00
parent 4bc957a1aa
commit 934e3bba63

View File

@ -1609,8 +1609,11 @@ implementation
if is_func then
begin
consume(_COLON);
pd.proctypeoption:=potype_function;
pd.returndef:=result_type([stoAllowSpecialization]);
end;
end
else
pd.proctypeoption:=potype_procedure;
if try_to_consume(_OF) then
begin
consume(_OBJECT);