* make near and far procedures/procvars incompatible with each other

git-svn-id: trunk@38645 -
This commit is contained in:
nickysn 2018-03-29 15:39:54 +00:00
parent 0b66419e8b
commit 85ca504f4a

View File

@ -2329,7 +2329,7 @@ implementation
if checkincompatibleuniv then
include(pa_comp,cpo_warn_incompatible_univ);
{ check return value and options, methodpointer is already checked }
po_comp:=[po_interrupt,po_iocheck,po_varargs];
po_comp:=[po_interrupt,po_iocheck,po_varargs,po_far];
{ check static only if we compare method pointers }
if def1.is_methodpointer and def2.is_methodpointer then
include(po_comp,po_staticmethod);