mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 06:19:32 +02:00
23 lines
387 B
ObjectPascal
23 lines
387 B
ObjectPascal
unit tbs0139;
|
|
|
|
{$mode objfpc}
|
|
|
|
interface
|
|
uses
|
|
tbs0139a;
|
|
|
|
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. |