-
Notifications
You must be signed in to change notification settings - Fork 13
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
Rules on parent class are not being applied. #142
Comments
Thank you for reporting. I would have to look at the code to confirm but I think we may not currently implement sub classes. (You did forget |
@tpluscode Nice catch! I simplified my example for the issue, but broke it in the process. I've updated the link to a fixed example. |
I'll have to dig more since I'm not familiar with the code base, but it looks like getInstances calls getInstancesOf which is supposed to collect sub classes. |
the triple |
Thanks @giacomociti for pointing that out. With this change, the playground example indeed works I suppose we should close this issue then, lest we intend to deviate from the spec |
Thank you for the clarification @giacomociti! Closing. |
I created a playground to reproduce the issue here.
Constraints:
Shapes:
Based on @HolgerKnublauch 's comments here I'd expect constraint validation to fail because Buddy does not have a name which is required by the animal class. Am I missing something?
The text was updated successfully, but these errors were encountered: