mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-23 05:29:36 +02:00
* require "override;" as well in macpas mode to override methods
git-svn-id: trunk@392 -
This commit is contained in:
parent
893f45c9e2
commit
8efe880649
compiler
@ -665,8 +665,6 @@ implementation
|
||||
begin
|
||||
{ new one has not override }
|
||||
if is_class(_class) and
|
||||
{ in Macintosh Object Pascal, all methods are virtual/override }
|
||||
not(m_mac in aktmodeswitches) and
|
||||
not(po_overridingmethod in pd.procoptions) then
|
||||
begin
|
||||
{ we start a new virtual tree, hide the old }
|
||||
|
@ -597,8 +597,7 @@ implementation
|
||||
begin
|
||||
parse_object_proc_directives(pd);
|
||||
|
||||
{ all Macintosh Object Pascal methods are virtual/ }
|
||||
{ override; the override part is handled in nobj }
|
||||
{ all Macintosh Object Pascal methods are virtual. }
|
||||
{ this can't be a class method, because macpas mode }
|
||||
{ has no m_class }
|
||||
if (m_mac in aktmodeswitches) then
|
||||
|
Loading…
Reference in New Issue
Block a user