mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-02 07:02:38 +02:00
22 lines
384 B
ObjectPascal
22 lines
384 B
ObjectPascal
unit bug0139;
|
|
|
|
interface
|
|
uses
|
|
objpas, bug0139a;
|
|
|
|
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.
|