You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My current workaround is to declare the HelperEnum just outside the module and use it from there. This makes code a bit disjoint, but it's doable. If this is intended behavior, it might be a good idea to add a note to the docs about it :)
The text was updated successfully, but these errors were encountered:
I forgot to mention, but the reason I think this might be intentional behavior is because it appears to be an internal mechanism for keeping track of transitions or generating the graphs, but that's just my guess.
Sorry for the (very) late reply. "Normal" enumerations are disallowed inside the module as regular enumerations are used for decision-states. Support for them could be added through the usage of #[state] but I don't know if that won't bring more complexity to the existing codebase for little benefit
I ran across three related issues when reproducing this issue.
Take the following:
The above produces the following error:
After this, I tried changing the enum to be:
And got:
And finally, once I got to what I was trying to do (algebraic enums), by doing the following:
I got the following error:
My current workaround is to declare the
HelperEnum
just outside the module and use it from there. This makes code a bit disjoint, but it's doable. If this is intended behavior, it might be a good idea to add a note to the docs about it :)The text was updated successfully, but these errors were encountered: