nac3core: src/toplevel/composer.rs fix the constructor propagation bug in function build_constructor_lookup

This commit is contained in:
z78078 2022-07-20 16:49:04 +08:00
parent 7d68efc599
commit a6bd6d5567
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ impl TopLevelComposer {
let mut current_class = class.clone();
while let Some(base) = base_class_lookup.get(current_class) {
if let Some(cons) = constructor_lookup.get(base) {
self.constructor_lookup.insert(*current_class, cons.clone());
self.constructor_lookup.insert(**class, cons.clone());
break;
} else {
current_class = base;