From 9b55b3dec49214e9d101510c3f607e14a44a5fbc Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Mon, 17 Jul 2023 17:01:10 +0200 Subject: [PATCH] Containers - `Struct`'s `MCloenable` API adhered to --- source/tlang/compiler/symbols/containers.d | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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);