mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 11:29:27 +02:00
compiler: fix record constructor return type when parsing procedure declaration
git-svn-id: branches/paul/extended_records@16562 -
This commit is contained in:
parent
726ea27bc0
commit
8c56269076
@ -1243,7 +1243,7 @@ implementation
|
||||
begin
|
||||
{ Set return type, class constructors return the
|
||||
created instance, object constructors return boolean }
|
||||
if is_class(pd.struct) then
|
||||
if is_class(pd.struct) or is_record(pd.struct) then
|
||||
pd.returndef:=pd.struct
|
||||
else
|
||||
{$ifdef CPU64bitaddr}
|
||||
|
Loading…
Reference in New Issue
Block a user