Code: Select all
program Buggs;
{ Declarations section }
const
PACKET_STATE_14_STEP_SPEED = 0;
PACKET_STATE_28_STEP_SPEED = 1;
PACKET_STATE_128_STEP_SPEED = 2;
var
i: Byte;
begin
i := 0;
case i of
PACKET_STATE_14_STEP_SPEED: <<< ERROR >>>>
begin
end;
PACKET_STATE_28_STEP_SPEED:
begin
end;
PACKET_STATE_128_STEP_SPEED:
begin
end;
end;
end.
I would expect this to compile. Am I wrong?18 301 "PACKET_STATE_28_STEP_SPEED:"is not valid identifier Buggs.mpas
Jim