Containers

- Fixed `clone(Container)` implementation for `Struct` whereby it would not parent the newly created copy
This commit is contained in:
Tristan B. Velloza Kildaire 2023-07-17 17:07:35 +02:00
parent 9b55b3dec4
commit 32056803d4
1 changed files with 3 additions and 0 deletions

View File

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