compiler: fix record constructor return type when parsing procedure declaration

git-svn-id: branches/paul/extended_records@16562 -
This commit is contained in:
paul 2010-12-13 07:04:56 +00:00
parent 726ea27bc0
commit 8c56269076

View File

@ -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}