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