Working inheritance #68

This commit is contained in:
2026-06-07 01:57:09 +02:00
parent 1977bd59be
commit e70e813497
2 changed files with 24 additions and 53 deletions
+6 -2
View File
@@ -142,7 +142,9 @@ pub fn class_decl(
for mut method in methods {
match method.item.visibility {
Visibility::Public => {
gen_method_point(&method.item, ctx, cg);
if !method.item.is_override {
gen_method_point(&method.item, ctx, cg);
}
method.item.name.0.insert_str(0, "__m_");
}
@@ -271,7 +273,9 @@ impl GenRust
cg.addln(");");
if self.2 {
cg.add("this._super._m_oop.0 = &Self::__SUPER_V_TABLE as *const *const std::ffi::c_void;");
cg.add_indentedln(
"this._super._m_oop.0 = &Self::__SUPER_V_TABLE as *const *const std::ffi::c_void;",
);
}
cg.add_indentedln("this");