From b1797bc827a08330d5ab25cabf95027ed7ada2b2 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Sun, 8 Jan 2023 14:37:27 +0100 Subject: [PATCH] :art: update tests --- tests/array/invalid_subscript.gw | 4 ++++ tests/error/class_inside.gw | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 tests/array/invalid_subscript.gw diff --git a/tests/array/invalid_subscript.gw b/tests/array/invalid_subscript.gw new file mode 100644 index 00000000..2f323898 --- /dev/null +++ b/tests/array/invalid_subscript.gw @@ -0,0 +1,4 @@ +#! [contains] invalid array declaration +class C {} + +var int[C] i; diff --git a/tests/error/class_inside.gw b/tests/error/class_inside.gw index 186355b2..d1b7e1ef 100644 --- a/tests/error/class_inside.gw +++ b/tests/error/class_inside.gw @@ -1,4 +1,4 @@ -#! [contains] declared inside +#! [contains] recursive type class c { var c myvar; } -- 2.43.0