mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 22:08:45 +02:00
21 lines
381 B
ObjectPascal
21 lines
381 B
ObjectPascal
unit unit2;
|
|
|
|
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. |