Preserve class attribute identity and validate inheritance conflicts across C3 MRO
Build / AerScript (push) Successful in 42s

This commit is contained in:
2026-10-24 18:26:58 +02:00
parent cf68edd920
commit d511414453
4 changed files with 278 additions and 73 deletions
+2 -2
View File
@@ -3275,7 +3275,7 @@ loop:
return SXERR_ABORT;
}
/* All done,install the constant */
rc = PH7_ClassInstallAttr(pClass, pCons);
rc = PH7_ClassInstallAttr(pGen, pClass, pCons);
if(rc != SXRET_OK) {
PH7_GenCompileError(pGen, E_ERROR, nLine, "PH7 is running out-of-memory");
}
@@ -3367,7 +3367,7 @@ loop:
PH7_VmSetByteCodeContainer(pGen->pVm, pInstrContainer);
}
/* All done,install the attribute */
rc = PH7_ClassInstallAttr(pClass, pAttr);
rc = PH7_ClassInstallAttr(pGen, pClass, pAttr);
if(rc != SXRET_OK) {
PH7_GenCompileError(pGen, E_ERROR, nLine, "PH7 is running out-of-memory");
}