-
-
Notifications
You must be signed in to change notification settings - Fork 389
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
rb_class_inherited_p returns Ruby's true/false/nil #762
Conversation
From: https://github.com/ruby/ruby/blob/6b86549df8f6d48eeab3c7b48b3fd9ee02f744ba/object.c#L1828-L1846 > Returns <code>nil</code> if there's no relationship between the two.
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!
@shyouhei I'm curious, which assertion found this bug? Could you point me to it? |
@eregon The spec was spec/optional/capi/object_spec.rb Lines 915 to 922 in ddd89c8
The then-missing RTEST now triggers at the spec/optional/capi/ext/object_spec.c Lines 348 to 361 in 41bf282
Here, the first The inconsistency was found by my assertion at
|
Thanks for the details, that makes perfect sense! |
From: https://github.com/ruby/ruby/blob/6b86549df8f6d48eeab3c7b48b3fd9ee02f744ba/object.c#L1828-L1846