__get__ on super() should bind real class, not super class

This commit is contained in:
K. Lange 2023-02-15 19:24:22 +09:00
parent 7e15c40849
commit b40b2a2f01

View File

@ -1675,7 +1675,7 @@ int krk_bindMethodSuper(KrkClass * originalClass, KrkString * name, KrkClass * r
if (type->_descget) {
krk_push(method);
krk_swap(1);
krk_push(OBJECT_VAL(originalClass));
krk_push(OBJECT_VAL(realClass));
krk_push(krk_callDirect(type->_descget, 3));
return 1;
}