Class helper methods not not compile with 'inline' modifier
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
TC = class
public
function G: Integer;
end;
TH = class helper for TC
public
function G: Integer; inline; // Works without 'inline'
property P: Integer read G;
end;
function TC.G: Integer; begin Result := 9; end;
function TH.G: Integer; begin Result := inherited; end;
var
x: TC;
begin
x := TC.Create;
Writeln(x.P);
end.
...gives "Illegal expression" error both in 2.6.0 and trunk.
Steps to reproduce:
See attached program.
Mantis conversion info:
- Mantis ID: 21810
- Version: 2.7.1
- Monitored by: » jcchu (JC Chu), » kyan (Constantine Yannakopoulos)