* better error pos for overridden error

This commit is contained in:
peter 2000-03-06 15:57:42 +00:00
parent 972a01b158
commit b02f4452ff

View File

@ -461,7 +461,7 @@ implementation
{ check, if a method should be overridden } { check, if a method should be overridden }
if (po_overridingmethod in hp^.procoptions) then if (po_overridingmethod in hp^.procoptions) then
Message1(parser_e_nothing_to_be_overridden,_c^.objname^+'.'+_name+hp^.demangled_paras); MessagePos1(hp^.fileinfo,parser_e_nothing_to_be_overridden,_c^.objname^+'.'+_name+hp^.demangled_paras);
{ next overloaded method } { next overloaded method }
hp:=hp^.nextoverloaded; hp:=hp^.nextoverloaded;
end; end;
@ -584,7 +584,7 @@ implementation
end; end;
{ check, if a method should be overridden } { check, if a method should be overridden }
if (po_overridingmethod in hp^.procoptions) then if (po_overridingmethod in hp^.procoptions) then
Message1(parser_e_nothing_to_be_overridden,_c^.objname^+'.'+_name+hp^.demangled_paras); MessagePos1(hp^.fileinfo,parser_e_nothing_to_be_overridden,_c^.objname^+'.'+_name+hp^.demangled_paras);
end; end;
hp:=hp^.nextoverloaded; hp:=hp^.nextoverloaded;
end; end;
@ -696,7 +696,10 @@ implementation
end. end.
{ {
$Log$ $Log$
Revision 1.25 2000-02-09 13:22:53 peter Revision 1.26 2000-03-06 15:57:42 peter
* better error pos for overridden error
Revision 1.25 2000/02/09 13:22:53 peter
* log truncated * log truncated
Revision 1.24 2000/01/28 23:17:53 florian Revision 1.24 2000/01/28 23:17:53 florian