CodeTools, CodeCreation: operator evaluation ignores operand types
Original Reporter info from Mantis: kluug.net @onpok
-
Reporter name: Ondrej Pokorny
Original Reporter info from Mantis: kluug.net @onpok
- Reporter name: Ondrej Pokorny
Description:
Ctrl+Shift+C doesn't always calculate the type of a
binary operator correctly.
Steps to reproduce:
Complete the "Res" variable in the code below:
procedure Test;
var
I: Int64;
begin
Res := I + 1;
end;
You get:
Res: Integer;
instead of
Res: Int64;
Additional information:
Function to be extended: TFindDeclarationTool.CalculateBinaryOperator
Mantis conversion info:
- Mantis ID: 28953
- Build: trunk
- Version: 1.5 (SVN)
- Fixed in version: 1.5 (SVN)
- Fixed in revision: 50217 (#62d50f53)