Range check error with sets
Original Reporter info from Mantis: FPCCore
-
Reporter name: FPC core team
Original Reporter info from Mantis: FPCCore
- Reporter name: FPC core team
Description:
When using the 'in' operator on a word and a set, and the word is > 255, a range check error occurs.
I think it should give an error on compile time (sets are bytes), or it should just work.
(maybe related to bug 4172. But i don't think so)
(see program for an example)
Additional information:
Reporter: Joost van der sluis
EMail: joost-cnoc dot nl
Mantis conversion info:
- Mantis ID: 6124
- OS: Win32