Commented code gets compiled (which With NestedComments switch and (* *) comment style).
Original Reporter info from Mantis: zoran
-
Reporter name: Zoran Vučenović
Original Reporter info from Mantis: zoran
- Reporter name: Zoran Vučenović
Description:
This compiles, while it should not:
program Project1;
{$ModeSwitch nestedcomments}
(
(**)
begin
writeln('see');
readln;
end.
Additional information:
If you change the middle asterisk in second comment, the compilation fails (correctly). This does not compile:
program Project1;
{$ModeSwitch nestedcomments}
(*
(a)
begin
writeln('see');
readln;
end.
Mantis conversion info:
- Mantis ID: 32019
- OS: Windows
- OS Build: 10
- Platform: Windows 32-bit
- Version: 3.0.2
- Fixed in version: 3.1.1
- Fixed in revision: 37935 (#5f7d3e16)
- Monitored by: » @martin_frb (Martin Friebe)