aboutsummaryrefslogtreecommitdiff
path: root/testsuite/fail_compilation/assign_to_slicing.elna
blob: 6743e06702686cc1e0a0e6a4a1fd10216a0fd667 (plain)
1
2
3
4
5
6
7
8
var
  s: [3]Int
  t: [2]Int

program()
begin
  s[1 to 2] := t[1 to 2] (* @Error Expression of type '\[\]Int' is not addressable *)
end.