tb0063.pp 400 B

12345678910111213141516171819202122232425262728293031
  1. { %FAIL }
  2. { Old file: tbf0320.pp }
  3. { }
  4. {$ifdef fpc}{$mode delphi}{$endif}
  5. { These should give an error, as also done in tp,delphi.
  6. See tbs0319.pp for a test with class which should compile in
  7. delphi mode }
  8. type
  9. cl=object
  10. k : longint;
  11. procedure p1;
  12. procedure p2;
  13. end;
  14. procedure cl.p1;
  15. var
  16. k : longint;
  17. begin
  18. end;
  19. procedure cl.p2;
  20. var
  21. p1 : longint;
  22. begin
  23. end;
  24. begin
  25. end.