Enumerations of product type instances or checks on instances #2078
Unanswered
javierarrieta
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, we are implementing a configuration for the definition of our domain and we would like to define a set of instances for a given product type that define our ADT/enum, so I tried this but it is not working:
So when using the
ContextTypewe can only use already created instances. Unfortunately that is failing as A is not defined according to the compiler/checker.What alternatives do we have to implement the safety guards we need to apply?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions