]> Nishi Git Mirror - gwion.git/commitdiff
:white_check_mark: Test ref type when using new
authorfennecdjay <astor.jeremie@wanadoo.fr>
Sat, 24 Aug 2019 12:44:01 +0000 (14:44 +0200)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Sat, 24 Aug 2019 12:44:01 +0000 (14:44 +0200)
tests/new/ref_new.gw [new file with mode: 0644]

diff --git a/tests/new/ref_new.gw b/tests/new/ref_new.gw
new file mode 100644 (file)
index 0000000..571cdb7
--- /dev/null
@@ -0,0 +1,3 @@
+#! [contains] can't use 'new' on ref type
+typedef int[] _int;
+new _int;