diff options
Diffstat (limited to 'testsuite/fail_compilation/assign_slice_ptr.elna')
| -rw-r--r-- | testsuite/fail_compilation/assign_slice_ptr.elna | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/fail_compilation/assign_slice_ptr.elna b/testsuite/fail_compilation/assign_slice_ptr.elna new file mode 100644 index 0000000..aa7a379 --- /dev/null +++ b/testsuite/fail_compilation/assign_slice_ptr.elna @@ -0,0 +1,7 @@ +var + slice: []Int + array: [2]Int + +begin + slice.ptr := array.ptr (* @Error Cannot assign to a value of type 'const \^Int', because it is constant or contains constant members *) +end. |
