The for loop thinks the open array of NSObject is an ObjectiveC array and thus 
gives me an error. Is this a bug?

=====================

{$mode objfpc}
{$modeswitch objectivec2}

program test;
uses
  CocoaAll;

procedure Test(input: array of NSObject); 
var
  obj: NSObject;
begin
  // Incompatible types: got "{Open} Array Of NSObject" expected 
"NSFastEnumerationProtocol"
  for obj in input do
    ;
end;

begin
end.


Regards,
        Ryan Joseph

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to