aboutsummaryrefslogtreecommitdiff
path: root/testsuite/fail_compilation
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2026-07-17 17:36:59 +0200
committerEugen Wissner <belka@caraus.de>2026-07-17 17:36:59 +0200
commit4f260c5e98def6bd1b3498d4085de5080cca7641 (patch)
tree89f80e6ffba1aa7a89702e40a3010a43b4639c08 /testsuite/fail_compilation
parente676e74efbbbf62887b9442326399eebccc4d108 (diff)
downloadelna-4f260c5e98def6bd1b3498d4085de5080cca7641.tar.gz
Disallow "[n] const T"
Diffstat (limited to 'testsuite/fail_compilation')
-rw-r--r--testsuite/fail_compilation/const_array.elna7
1 files changed, 7 insertions, 0 deletions
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.