Skip to content

Instantly share code, notes, and snippets.

@fal-works
Created August 19, 2020 16:46
Show Gist options
  • Save fal-works/1c6e41696a571fc53a7cc769486af5ef to your computer and use it in GitHub Desktop.
Save fal-works/1c6e41696a571fc53a7cc769486af5ef to your computer and use it in GitHub Desktop.
HL/JIt error with too many enum constructors
class Main {
static function main() {
final instance: MyEnum = EC0;
trace(switch instance {
case EC0: "EC0";
default: "other";
});
}
}
enum MyEnum {
EC0;
EC1;
EC2;
EC3;
EC4;
EC5;
EC6;
EC7;
EC8;
EC9;
EC10;
EC11;
EC12;
EC13;
EC14;
EC15;
EC16;
EC17;
EC18;
EC19;
EC20;
EC21;
EC22;
EC23;
EC24;
EC25;
EC26;
EC27;
EC28;
EC29;
EC30;
EC31;
EC32;
EC33;
EC34;
EC35;
EC36;
EC37;
EC38;
EC39;
EC40;
EC41;
EC42;
EC43;
EC44;
EC45;
EC46;
EC47;
EC48;
EC49;
EC50;
EC51;
EC52;
EC53;
EC54;
EC55;
EC56;
EC57;
EC58;
EC59;
EC60;
EC61;
EC62;
EC63;
EC64;
EC65;
EC66;
EC67;
EC68;
EC69;
EC70;
EC71;
EC72;
EC73;
EC74;
EC75;
EC76;
EC77;
EC78;
EC79;
EC80;
EC81;
EC82;
EC83;
EC84;
EC85;
EC86;
EC87;
EC88;
EC89;
EC90;
EC91;
EC92;
EC93;
EC94;
EC95;
EC96;
EC97;
EC98;
EC99;
EC100;
EC101;
EC102;
EC103;
EC104;
EC105;
EC106;
EC107;
EC108;
EC109;
EC110;
EC111;
EC112;
EC113;
EC114;
EC115;
EC116;
EC117;
EC118;
EC119;
EC120;
EC121;
EC122;
EC123;
EC124;
EC125;
EC126;
EC127;
EC128;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment