2
0

tw7989.pp 530 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. { %fail }
  2. program test;
  3. {$mode objfpc}
  4. uses
  5. Classes, SysUtils;
  6. type
  7. IMyInterface = interface
  8. function test1: integer;
  9. function test2: single;
  10. function test3: double;
  11. end;
  12. TMyObject = class(TInterfacedObject, IMyInterface)
  13. function test1: byte;
  14. function test2: double;
  15. function test3: integer;
  16. end;
  17. function TMyObject.test1: byte;
  18. begin
  19. Result := 0;
  20. end;
  21. function TMyObject.test2: double;
  22. begin
  23. Result := 0;
  24. end;
  25. function TMyObject.test3: integer;
  26. begin
  27. Result := 0;
  28. end;
  29. begin
  30. end.