mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 20:49:49 +02:00
* handle implementing objcprotocols that are defined as formal external
in the current scope, but whose full definition is available elsewhere git-svn-id: trunk@17171 -
This commit is contained in:
parent
fdd99ec16c
commit
c0423b6a78
@ -280,12 +280,13 @@ implementation
|
||||
|
||||
procedure handleImplementedProtocol(intfdef : tobjectdef);
|
||||
begin
|
||||
intfdef:=find_real_objcclass_definition(intfdef,false);
|
||||
if not is_objcprotocol(intfdef) then
|
||||
begin
|
||||
Message1(type_e_protocol_type_expected,intfdef.typename);
|
||||
exit;
|
||||
end;
|
||||
if (oo_is_forward in intfdef.objectoptions) then
|
||||
if ([oo_is_forward,oo_is_formal] * intfdef.objectoptions <> []) then
|
||||
begin
|
||||
Message1(parser_e_forward_protocol_declaration_must_be_resolved,intfdef.objrealname^);
|
||||
exit;
|
||||
|
Loading…
Reference in New Issue
Block a user