Commit 6f91e06c authored by Kevin Modzelewski's avatar Kevin Modzelewski

Drat, will have to implement this

parent 4597b228
...@@ -85,9 +85,8 @@ Box* superNew(Box* _cls, Box* _type, Box* inst) { ...@@ -85,9 +85,8 @@ Box* superNew(Box* _cls, Box* _type, Box* inst) {
BoxedClass* ob_type = NULL; BoxedClass* ob_type = NULL;
if (inst != NULL) { if (inst != NULL) {
if (!isSubclass(inst->cls, type)) { if (!isSubclass(inst->cls, type)) {
// The "inst" object can be a subtype of "type"/ RELEASE_ASSERT(!(isSubclass(inst->cls, type_cls) && isSubclass(static_cast<BoxedClass*>(inst), type)),
RELEASE_ASSERT(isSubclass(inst->cls, type_cls) && isSubclass(static_cast<BoxedClass*>(inst), type), "super(cls, subcls) is unimplemented");
"unimplemented");
raiseExcHelper(TypeError, "super(type, obj): obj must be an instance or subtype of type"); raiseExcHelper(TypeError, "super(type, obj): obj must be an instance or subtype of type");
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment