direct enum array

The following code can be translated into normal FPC programs. With a pas2js app, there is a syntax error at "MB02".

type TMB = (mb1, mb2);

var

MB01: array [TMB] of integer; // io.

MB02: array [(mm1, mm2)] of integer; // Syntax-Error by pas2js

enum_array_test.zip

Edited by sechshelme
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information