From 4f260c5e98def6bd1b3498d4085de5080cca7641 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Fri, 17 Jul 2026 17:36:59 +0200 Subject: Disallow "[n] const T" --- testsuite/fail_compilation/const_array.elna | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 testsuite/fail_compilation/const_array.elna (limited to 'testsuite/fail_compilation/const_array.elna') diff --git a/testsuite/fail_compilation/const_array.elna b/testsuite/fail_compilation/const_array.elna new file mode 100644 index 0000000..7a1a6f5 --- /dev/null +++ b/testsuite/fail_compilation/const_array.elna @@ -0,0 +1,7 @@ +proc f() +var + a: [10]const Int (* @Error const must be written before the array size, not after *) +begin +return + +end. -- cgit v1.2.3