nac3core: Add field "constructor_lookup" to the struct TopLevelComposer #308

Closed
z78078 wants to merge 9 commits from issue-139 into master
Showing only changes of commit a6bd6d5567 - Show all commits

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;