|
@@ -3403,19 +3403,12 @@ implementation
|
|
if hdef.typ=procdef then
|
|
if hdef.typ=procdef then
|
|
begin
|
|
begin
|
|
if block_type<>bt_body then
|
|
if block_type<>bt_body then
|
|
- begin
|
|
|
|
- message(parser_e_illegal_expression);
|
|
|
|
- srsym:=generrorsym;
|
|
|
|
- srsymtable:=nil;
|
|
|
|
- end
|
|
|
|
|
|
+ message(parser_e_illegal_expression);
|
|
|
|
+ srsym:=tprocdef(hdef).procsym;
|
|
|
|
+ if assigned(spezcontext.symtable) then
|
|
|
|
+ srsymtable:=spezcontext.symtable
|
|
else
|
|
else
|
|
- begin
|
|
|
|
- srsym:=tprocdef(hdef).procsym;
|
|
|
|
- if assigned(spezcontext.symtable) then
|
|
|
|
- srsymtable:=spezcontext.symtable
|
|
|
|
- else
|
|
|
|
- srsymtable:=srsym.owner;
|
|
|
|
- end;
|
|
|
|
|
|
+ srsymtable:=srsym.owner;
|
|
end
|
|
end
|
|
else
|
|
else
|
|
internalerror(2015061204);
|
|
internalerror(2015061204);
|