mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-13 08:59:27 +02:00
* set proctypeoption for procvars
This commit is contained in:
parent
4bc957a1aa
commit
934e3bba63
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user