fpc/tests/tbs/tb0119.pp
2002-09-07 15:40:30 +00:00

27 lines
491 B
ObjectPascal

{ Old file: tbs0139.pp }
{ Cannot access protected method of ancestor class from other unit. OK 0.99.6 }
unit tb0119;
{$mode objfpc}
interface
uses
ub0119;
type
AnotherClass=class(SomeClass)
protected
procedure doSomething; override;
end ;
implementation
procedure AnotherClass.doSomething;
begin
inherited doSomething; // this causes the error: " can not call protected
// method from here " ( or something similar )
end ;
end.