mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 02:40:26 +02:00
* use correct source code position for error messages about invalid
published fields (mantis #21035) git-svn-id: trunk@20060 -
This commit is contained in:
parent
3d6e0dc570
commit
1f614b7efc
@ -1706,7 +1706,7 @@ implementation
|
||||
if (visibility=vis_published) and
|
||||
not(is_class(hdef)) then
|
||||
begin
|
||||
Message(parser_e_cant_publish_that);
|
||||
MessagePos(tfieldvarsym(sc[0]).fileinfo,parser_e_cant_publish_that);
|
||||
visibility:=vis_public;
|
||||
end;
|
||||
|
||||
@ -1714,7 +1714,7 @@ implementation
|
||||
not(oo_can_have_published in tobjectdef(hdef).objectoptions) and
|
||||
not(m_delphi in current_settings.modeswitches) then
|
||||
begin
|
||||
Message(parser_e_only_publishable_classes_can_be_published);
|
||||
MessagePos(tfieldvarsym(sc[0]).fileinfo,parser_e_only_publishable_classes_can_be_published);
|
||||
visibility:=vis_public;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user