nac3core: src/toplevel/composer.rs fix the constructor propagation bug in function build_constructor_lookup
This commit is contained in:
parent
7d68efc599
commit
a6bd6d5567
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue