]> Nishi Git Mirror - gwion.git/commitdiff
:art: test var Foo(...) 252/head
authorfennecdjay <fennecdjay@gmail.com>
Sat, 3 Sep 2022 11:01:40 +0000 (13:01 +0200)
committerfennecdjay <fennecdjay@gmail.com>
Sat, 3 Sep 2022 11:01:40 +0000 (13:01 +0200)
tests/ctor/ctor_overload.gw

index 1c7c803325fe20fc08354455aaf99eabe44ea9cc..82f80c147fbd50fb27290df9af3d46cc96d967b8 100644 (file)
@@ -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}" >>>;