]> Nishi Git Mirror - gwion.git/commitdiff
:art: update tests
authorfennecdjay <fennecdjay@gmail.com>
Sun, 8 Jan 2023 13:37:27 +0000 (14:37 +0100)
committerfennecdjay <fennecdjay@gmail.com>
Sun, 8 Jan 2023 13:37:27 +0000 (14:37 +0100)
tests/array/invalid_subscript.gw [new file with mode: 0644]
tests/error/class_inside.gw

diff --git a/tests/array/invalid_subscript.gw b/tests/array/invalid_subscript.gw
new file mode 100644 (file)
index 0000000..2f32389
--- /dev/null
@@ -0,0 +1,4 @@
+#! [contains] invalid array declaration
+class C {}
+
+var int[C] i;
index 186355b2dfc3605351ba7033e7e88ccaebf1735f..d1b7e1efd2ad648a9a349b47d9c6c11fec3c44cc 100644 (file)
@@ -1,4 +1,4 @@
-#! [contains] declared inside
+#! [contains] recursive type
 class c {
   var c myvar;
 }