diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-08-02 17:05:34 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-08-02 17:05:34 +0200 |
| commit | 1c2fb173ea3b674207badc721556ad72962b266e (patch) | |
| tree | 950b1d58b719f3302045e114eee35a426af8b0dd /testsuite/fail_compilation | |
| parent | c07c43bf911f62ad6363c024b3f81ceb4f95b16c (diff) | |
| download | elna-1c2fb173ea3b674207badc721556ad72962b266e.tar.gz | |
Check array property accessbility at compile time
Diffstat (limited to 'testsuite/fail_compilation')
| -rw-r--r-- | testsuite/fail_compilation/compile_time_array_ptr.elna | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/fail_compilation/compile_time_array_ptr.elna b/testsuite/fail_compilation/compile_time_array_ptr.elna new file mode 100644 index 0000000..dd626a6 --- /dev/null +++ b/testsuite/fail_compilation/compile_time_array_ptr.elna @@ -0,0 +1,5 @@ +var + source: [3]Int := [3]Int{ 1, 2, 3} + target: ^Int := source.ptr (* @Error Variable initializers must be constant expressions *) + +end. |
