diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-07-17 17:36:59 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-07-17 17:36:59 +0200 |
| commit | 4f260c5e98def6bd1b3498d4085de5080cca7641 (patch) | |
| tree | 89f80e6ffba1aa7a89702e40a3010a43b4639c08 /testsuite | |
| parent | e676e74efbbbf62887b9442326399eebccc4d108 (diff) | |
| download | elna-4f260c5e98def6bd1b3498d4085de5080cca7641.tar.gz | |
Disallow "[n] const T"
Diffstat (limited to 'testsuite')
| -rw-r--r-- | testsuite/fail_compilation/const_array.elna | 7 |
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. |
