]> Nishi Git Mirror - gwion.git/commitdiff
:white_check_mark: test SetCtor
authorfennecdjay <fennecdjay@gmail.com>
Sun, 11 Dec 2022 13:41:57 +0000 (14:41 +0100)
committerfennecdjay <fennecdjay@gmail.com>
Sun, 11 Dec 2022 13:41:57 +0000 (14:41 +0100)
tests/ctor/set_ctor.gw [new file with mode: 0644]

diff --git a/tests/ctor/set_ctor.gw b/tests/ctor/set_ctor.gw
new file mode 100644 (file)
index 0000000..cb63112
--- /dev/null
@@ -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();