tw15391a.pp 388 B

1234567891011121314151617181920212223242526272829
  1. { %fail }
  2. {$ifdef fpc}
  3. {$mode delphi}
  4. {$endif}
  5. type
  6. FuncA = function : Integer of object;
  7. ObjA = class
  8. function Func1: Integer;
  9. procedure Proc1(const Arr: Array of char);
  10. end;
  11. var A : ObjA;
  12. function ObjA.Func1: Integer;
  13. begin
  14. Result := 1;
  15. end;
  16. procedure ObjA.Proc1(const Arr: Array of char);
  17. begin
  18. end;
  19. begin
  20. A := ObjA.Create;
  21. A.Proc1([A.Func1]);
  22. a.free;
  23. end.