From: fennecdjay Date: Sun, 11 Dec 2022 13:41:57 +0000 (+0100) Subject: :white_check_mark: test SetCtor X-Git-Tag: nightly~207^2~47 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=b335fbcd4e165865ce6adfea21321f2283cc7593;p=gwion.git :white_check_mark: test SetCtor --- diff --git a/tests/ctor/set_ctor.gw b/tests/ctor/set_ctor.gw new file mode 100644 index 00000000..cb631129 --- /dev/null +++ b/tests/ctor/set_ctor.gw @@ -0,0 +1,13 @@ +#! [contains] StackOverflow +class D { + operator new() { + new C(); + } +} + +class final C { + 12 :=> var int i; + operator new() { new D(); } +} + +new C();