tb0115.pp 312 B

1234567891011121314151617
  1. { %FAIL }
  2. {$ifdef fpc}{$mode objfpc}{$endif}
  3. uses ub0115;
  4. type
  5. tobj2 = class (tobj)
  6. { this will try to override tobj.proc1 which is private
  7. and can not be seen. This needs an error }
  8. procedure proc1 (a: integer);override;
  9. end;
  10. procedure tobj2.proc1 (a: integer);
  11. begin
  12. end;
  13. begin
  14. end.