I also noticed that the interpreter and compiler transform Enums (DUs' with assigned values) are converted into struct DUs', and they are not throwing the exception above.
Why is it, that fieldless DU's just are handled as enums? This seems like a rather simple workaround. the type inference system, should already have enough information to catch this and let the compiler make that choice. It would make enums where the value of a case are not important much simpler to implement, and solve the above problem.
Description
In the process of optimizing some of my code, I noticed the problem where
Coursed the compiler to throw a compiler exception
For any DU type where N >= 49 (50 cases)
I also noticed that the interpreter and compiler transform Enums (DUs' with assigned values) are converted into struct DUs', and they are not throwing the exception above.
Why is it, that fieldless DU's just are handled as enums? This seems like a rather simple workaround. the type inference system, should already have enough information to catch this and let the compiler make that choice. It would make enums where the value of a case are not important much simpler to implement, and solve the above problem.