Containers

- Fixed `clone(Container)` implementation for `Struct` whereby it would not parent the newly created copy
feature/class_static_init
Tristan B. V. Kildaire 10 months ago
parent 9b55b3dec4
commit 32056803d4

@ -283,6 +283,9 @@ public class Struct : Type, Container, MCloneable
clonedStruct.addStatement(clonedStmt);
}
// Parent ourselves to the given parent
clonedStruct.parentTo(newParent);
return clonedStruct;
}
}

Loading…
Cancel
Save