Berry supper class in member

This commit is contained in:
Stephan Hadinger 2022-04-08 19:53:55 +02:00
parent 45321d13e6
commit 6ee2ed80f7
1 changed files with 5 additions and 0 deletions

View File

@ -875,6 +875,11 @@ newframe: /* a new call frame */
}
var_setinstance(&a[1], obj); /* replace superinstance by lowest subinstance */
}
} else if (var_isclass(a)) {
/* in this case we have a class in a static or non-static member */
/* it's always treated like a statif function */
a[1] = result;
var_settype(a, NOT_METHOD);
} else {
vm_error(vm, "attribute_error",
"class '%s' has no method '%s'",