Source Code Editor shows inverted interpretation of $if statements
Original Reporter info from Mantis: TWhyman
-
Reporter name: Tony Whyman
Original Reporter info from Mantis: TWhyman
- Reporter name: Tony Whyman
Description:
A simple program:
program Project1;
uses LCLVersion;
begin
writeln(lcl_fullversion);
{$if lcl_fullversion < 2000000}
writeln('lower');
{$ifend}
{$if lcl_fullversion > 2000000}
writeln('upper');
{$ifend}
end.
In the IDE, "writeln('upper') is greyed out, while when the program runs, "upper" is written out and not lower. i.e. the reverse of what is implied by the greying out.
Steps to reproduce:
Compile and go
Additional information:
Probably worth adding a breakpoint on the final "end". When I run the IDE under Linux, the console output is on guaranteed to appear when a breakpoint is set. May be another bug?
Mantis conversion info:
- Mantis ID: 34649
- OS: Linux
- OS Build: 4.4.0
- Platform: Linux Mint 18
- Version: 2.0RC2
- Fixed in revision: 0030109
- Monitored by: » TWhyman (Tony Whyman)