In Lazarus byte array can be declared in the following way:
const myArray: array of byte = ($41,$43,$45,$45,$49,$53,$55,$55,$5A,$61,$63,$65,$65,$69,$73,$75,$75,$7A);
However LAMW fails to compile this code and throws error:
Fatal: Syntax error, ";" expected but "ordinal const" found
The workaround solution for this LAMW bug is to declare byte array as:
const myArray: array [0..17] of byte = ($41,$43,$45,$45,$49,$53,$55,$55,$5A,$61,$63,$65,$65,$69,$73,$75,$75,$7A);
How to fix this byte array declaration bug in LAMW?