bug0139.pp 384 B

123456789101112131415161718192021
  1. unit bug0139;
  2. interface
  3. uses
  4. objpas, bug0139a;
  5. type
  6. AnotherClass=class(SomeClass)
  7. protected
  8. procedure doSomething; override;
  9. end ;
  10. implementation
  11. procedure AnotherClass.doSomething;
  12. begin
  13. inherited doSomething; // this causes the error: " can not call protected
  14. // method from here " ( or something similar )
  15. end ;
  16. end.