From: fennecdjay Date: Sat, 3 Sep 2022 11:01:40 +0000 (+0200) Subject: :art: test var Foo(...) X-Git-Tag: nightly~264^2 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=refs%2Fpull%2F252%2Fhead;p=gwion.git :art: test var Foo(...) --- diff --git a/tests/ctor/ctor_overload.gw b/tests/ctor/ctor_overload.gw index 1c7c8033..82f80c14 100644 --- a/tests/ctor/ctor_overload.gw +++ b/tests/ctor/ctor_overload.gw @@ -7,8 +7,8 @@ class C { operator new() {} } -new C() :=> var auto c; -new C(2) :=> var auto d; +var C() c; +var C(2) d; <<< "c:${c.i}, d:${d.i}" >>>; <<< "the answer: ${(new C(42)).i}" >>>;