diff --git a/source/tlang/compiler/symbols/containers.d b/source/tlang/compiler/symbols/containers.d index a591e9a..3b9463e 100644 --- a/source/tlang/compiler/symbols/containers.d +++ b/source/tlang/compiler/symbols/containers.d @@ -283,6 +283,9 @@ public class Struct : Type, Container, MCloneable clonedStruct.addStatement(clonedStmt); } + // Parent ourselves to the given parent + clonedStruct.parentTo(newParent); + return clonedStruct; } }