compiler does not accept chr() as definition of ranged types.
Original Reporter info from Mantis: roked
-
Reporter name: Marģers
Original Reporter info from Mantis: roked
- Reporter name: Marģers
Description:
Error: Identifier not found "chr" in line: type Tchr = chr(3)..chr(12);
more in forum:
https://forum.lazarus.freepascal.org/index.php/topic,52066.0.html
Steps to reproduce:
program fuuffuu;
const cChr = chr(12); { Ok }
type Tcha = ord(3)..ord(12); { Ok }
type Tchz = #3..#12; { Ok }
type Tcho = char(3)..char(12);{ Ok }
type Tchr = chr(3)..chr(12); { Error: Identifier not found "chr" }
type TArrChr = array [chr(3)..chr(12)] of char; { Ok }
var cz : #3..#12; { Ok }
var ch : chr(3)..chr(12); { Error: Identifier not found "chr" }
var c : char;
begin
c:=chr(12); { Ok }
end.
Additional information:
example compiles fine in TP 7
Mantis conversion info:
- Mantis ID: 38051
- OS: linux
- OS Build: .
- Platform: x86_64
- Version: 3.3.1
- Fixed in version: 3.3.1
- Fixed in revision: 47353 (#c496b609)