Here’s a simplified example of code that’s similar to what I’m working on that’s throwing the following error: the label game_key is defined in both types transitionData and addData.
type rec t =
| Transition(transitionData)
| Add(addData)
and transitionData = { game_key: string, /* and other fields */ }
and addData = {game_key: string, event: t, /* and other fields */ }
My first thought was to just wrap the problematic types in their own modules, but how would I do that with this recursive type?