Skip to content
Discussion options

You must be logged in to vote

Hey @luan-xiaokun,

usually you would try to make BracketTerm infer the same type as Term for this. This prevents the circular type reference. See the following example in the arithmetics example:

https://github.com/langium/langium/blob/9f587815f9d14f433d22831ac11d3b9f11696d9f/examples/arithmetics/src/language-server/arithmetics.langium#L31-L34

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@luan-xiaokun
Comment options

@msujew
Comment options

@luan-xiaokun
Comment options

Answer selected by luan-xiaokun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants