Steps to reproduce
- Export a
number-backed Enum
- Add the compiler flag
@compileMembersOnly
- Perform a bitwise operation on members of the enum
3 Run application and observe runtime error in lua
REPL
Playground showcase error, but I ran into it locally first.
Playground
Interim Fixes
If anyone is running into this issue, you can work-around by not using @compileMembersOnly.
Also, maybe having the exported enum in another module could resolve it.
Steps to reproduce
number-backedEnum@compileMembersOnly3 Run application and observe runtime error in lua
REPL
Playground showcase error, but I ran into it locally first.
Playground
Interim Fixes
If anyone is running into this issue, you can work-around by not using
@compileMembersOnly.Also, maybe having the exported enum in another module could resolve it.