Class helper can not access "strict protected" method of extended class
Original Reporter info from Mantis: Ask
-
Reporter name: Alexander S. Klenin
Original Reporter info from Mantis: Ask
- Reporter name: Alexander S. Klenin
Description:
The following code
type
TC1 = class
strict protected
procedure P;
end;
TH1 = class helper for TC1
public
procedure Q;
end;
procedure TC1.P; begin Writeln(1); end;
procedure TH1.Q; begin inherited P; end;
... gives "Wrong number of parameters" error in both 2.6.0 and trunk.
Note that either removing "strict" OR moving class definition to a
separate module helps.
Mantis conversion info:
- Mantis ID: 21811
- Version: 2.7.1
- Fixed in version: 3.0.0
- Fixed in revision: 22569 (#42f6caa0)