|
@@ -3290,6 +3290,10 @@ const
|
|
|
if (pd_procvar in pdflags) and
|
|
|
not(pd_procvar in proc_direcdata[p].pd_flags) then
|
|
|
begin
|
|
|
+ { reset mismatching calling convention to avoid further errors, see e.g. tests/webtbf/tw41041.pp }
|
|
|
+ if proc_direcdata[p].pocall<>pocall_none then
|
|
|
+ pd.proccalloption:=pocall_default;
|
|
|
+
|
|
|
MessagePos1(tokenloc, parser_e_proc_dir_not_allowed_in_procvar,name);
|
|
|
exit;
|
|
|
end;
|