diff --git a/source/tlang/compiler/symbols/containers.d b/source/tlang/compiler/symbols/containers.d index 9d264b9e..a591e9a2 100644 --- a/source/tlang/compiler/symbols/containers.d +++ b/source/tlang/compiler/symbols/containers.d @@ -252,9 +252,13 @@ public class Struct : Type, Container, MCloneable * fresh copy of all its members and the struct * itself. * + * Param: + * newParent = the `Container` to re-parent the + * cloned `Statement`'s self to + * * Returns: the cloned `Statement` */ - public override Statement clone() + public override Statement clone(Container newParent = null) { Struct clonedStruct = new Struct(this.name);