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.
|
@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