tbs0139.pp 387 B

1234567891011121314151617181920212223
  1. unit tbs0139;
  2. {$mode objfpc}
  3. interface
  4. uses
  5. tbs0139a;
  6. type
  7. AnotherClass=class(SomeClass)
  8. protected
  9. procedure doSomething; override;
  10. end ;
  11. implementation
  12. procedure AnotherClass.doSomething;
  13. begin
  14. inherited doSomething; // this causes the error: " can not call protected
  15. // method from here " ( or something similar )
  16. end ;
  17. end.