tb0126.pp 457 B

12345678910111213141516171819202122232425
  1. { %fail }
  2. { This program should fail compilation, since
  3. the declaration is not the same as the actual
  4. implementation, checked against Delphi 3 -
  5. the class keyword is missing in front
  6. of procedure tmyclass.myproc
  7. }
  8. {$ifdef fpc}
  9. {$mode objfpc}
  10. {$endif}
  11. type
  12. tmyclass = class
  13. class procedure myproc;virtual;
  14. end;
  15. { missing class keyword in front of procedure }
  16. procedure tmyclass.myproc;
  17. begin
  18. end;
  19. Begin
  20. end.