in (variant trouble)
Original Reporter info from Mantis: FPCCore
-
Reporter name: FPC core team
Original Reporter info from Mantis: FPCCore
- Reporter name: FPC core team
Description:
this program return
- runtime error 221 in fpc 1.9.4/7 Win32
- Error 41: Operand types do not match operator. in BP7
- type mismath in fpc 1.0.10
function c(x:char):char;
begin
c:=(char(succ(ord(x))));
end;
begin
if not c('y') in ['a','b'] then writeln(99);
end.
-----------
this is ok
function c(x:char):char;
begin
c:=(char(succ(ord(x))));
end;
begin
if not (c('y') in ['a','b']) then writeln(99);
end.
Additional information:
Reporter: Salvatore Licciardi
EMail: turylicciardi at tiscalinet dot it
Mantis conversion info:
- Mantis ID: 5658
- OS: All
- Version: 1.9.7
- Fixed in version: 1.9.9