-
Hi guys, I'm new to Langium and excited trying it out. I'm trying to fully use declared types but not sure how to use type union properly. Here's a simple repro:
Langium reports error for the declaration of "type AB" and rule "R": I guess I must have missed something very obvious. Any help is appreciated. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey @ymc9, right now the whole declared types stuff is in a relatively early feature stage. There are tons of issues in both the validation and generation of those types. We plan to finalize this feature in Q4, but as of now, I wouldn't recommend using it. Instead, you should just let Langium infer your types, that works fine in almost all cases. |
Beta Was this translation helpful? Give feedback.
Hey @ymc9,
right now the whole declared types stuff is in a relatively early feature stage. There are tons of issues in both the validation and generation of those types. We plan to finalize this feature in Q4, but as of now, I wouldn't recommend using it. Instead, you should just let Langium infer your types, that works fine in almost all cases.