mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-12 11:09:14 +02:00
* don't require "override" for overriding methods in external Java classes
just like for Objective-C and C++ (to make it easier for automatic parsers) git-svn-id: branches/jvmbackend@18396 -
This commit is contained in:
parent
9e8bb70548
commit
0be352e9a9
@ -1782,9 +1782,10 @@ begin
|
||||
Message(parser_e_no_object_override)
|
||||
else if is_objccategory(tprocdef(pd).struct) then
|
||||
Message(parser_e_no_category_override)
|
||||
else if not is_objc_class_or_protocol(tprocdef(pd).struct) and
|
||||
else if (po_external in pd.procoptions) and
|
||||
not is_objc_class_or_protocol(tprocdef(pd).struct) and
|
||||
not is_cppclass(tprocdef(pd).struct) and
|
||||
(po_external in pd.procoptions) then
|
||||
not is_java_class_or_interface(tprocdef(pd).struct) then
|
||||
Message1(parser_e_proc_dir_conflict,'OVERRIDE');
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user