-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes for deep and declared hierarchies #973
Fixes for deep and declared hierarchies #973
Conversation
This reverts commit 32da66e.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, that's very helpful! I have a few improvements on the testing code, but otherwise this looks already pretty good 👍
packages/langium/test/grammar/type-system/inferred-types.test.ts
Outdated
Show resolved
Hide resolved
packages/langium/test/grammar/type-system/type-validator.test.ts
Outdated
Show resolved
Hide resolved
I have split the |
Wait, the |
Had to use the previous test case to make the test fail. With some branch types removed the test would pass on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 👍
Fixes #949:
$type
missing some subtype names occasionally - names are collected recursivelyThis does not fix
$container
being non-optional on grammar entry types and its supertypes.