-
|
Hi, This gives me the following compile error: Is there a way to achieve this or are Scala 3 enums not supported? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
Hi! Sorry for the delay, I was busy. Looking at the error, I feel a part of the code is missing in your post. If so, can you post the code where the error occurs? Anyway |
Beta Was this translation helpful? Give feedback.
-
|
It is actually the whole code, just the error message is from my concrete project. So in this context it would be: |
Beta Was this translation helpful? Give feedback.
-
|
Ah, thanks. For only one you have right, this would be working: |
Beta Was this translation helpful? Give feedback.
Ah, thanks.
.typedid the trick:type ContractProduct = DocId :| any.StrictEqual[DocId.ContractB.type]For only one you have right, this would be working:
type ContractProduct = DocId.ContractB.type. But this was only a simplified example. In reality I need a subset, like:DocId :| any.In[(DocId.ContractB.type, DocId.ContractC.type)]which now also works!