From b335fbcd4e165865ce6adfea21321f2283cc7593 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Sun, 11 Dec 2022 14:41:57 +0100 Subject: [PATCH] :white_check_mark: test SetCtor --- tests/ctor/set_ctor.gw | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/ctor/set_ctor.gw 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(); -- 2.43.0