Case boolean of
Original Reporter info from Mantis: delfion
-
Reporter name:
Original Reporter info from Mantis: delfion
- Reporter name:
Description:
Documentation says :"The constants appearing in the various case parts must be known at compile-time, and can be of the following types : enumeration types, Ordinal types (except boolean), and chars or string types."
http://www.freepascal.org/docs-html/ref/refsu57.html
But this is valid code:
var a:boolean;
b:integer;
begin
case a of
true:b:=2;
false:b:=1;
end;
end.
Mantis conversion info:
- Mantis ID: 31125
- Version: 3.1.1
- Fixed in version: 3.1.1
- Fixed in revision: 1377 (#50cf3cf3)
- Target version: 3.2.0