mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 21:49:06 +02:00
* allow in delphi mode member classes in published sections which aren't compiled with $M+
git-svn-id: trunk@7655 -
This commit is contained in:
parent
b635d89ffa
commit
bc678a2b90
@ -1317,7 +1317,8 @@ implementation
|
|||||||
end
|
end
|
||||||
else
|
else
|
||||||
if (sp_published in current_object_option) and
|
if (sp_published in current_object_option) and
|
||||||
not(oo_can_have_published in tobjectdef(hdef).objectoptions) then
|
not(oo_can_have_published in tobjectdef(hdef).objectoptions) and
|
||||||
|
not(m_delphi in current_settings.modeswitches) then
|
||||||
begin
|
begin
|
||||||
Message(parser_e_only_publishable_classes_can_be_published);
|
Message(parser_e_only_publishable_classes_can_be_published);
|
||||||
exclude(current_object_option,sp_published);
|
exclude(current_object_option,sp_published);
|
||||||
|
Loading…
Reference in New Issue
Block a user