tb0119.pp 490 B

1234567891011121314151617181920212223242526
  1. { Old file: tbs0139.pp }
  2. { Cannot access protected method of ancestor class from other unit. OK 0.99.6 }
  3. unit tb0119;
  4. {$mode objfpc}
  5. interface
  6. uses
  7. ub0119;
  8. type
  9. AnotherClass=class(SomeClass)
  10. protected
  11. procedure doSomething; override;
  12. end ;
  13. implementation
  14. procedure AnotherClass.doSomething;
  15. begin
  16. inherited doSomething; // this causes the error: " can not call protected
  17. // method from here " ( or something similar )
  18. end ;
  19. end.