__get__ on super() should bind real class, not super class
This commit is contained in:
parent
7e15c40849
commit
b40b2a2f01
2
src/vm.c
2
src/vm.c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user