aboutsummaryrefslogtreecommitdiff
path: root/testsuite/fail_compilation/assign_to_slicing.elna
blob: 92d0dae6f78339fe020a5c59c974ac7e5ae6c06c (plain)
1
2
3
4
5
6
7
8
9
10
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 *)
return 0u8

end.