aboutsummaryrefslogtreecommitdiff
path: root/testsuite/fail_compilation/reference_slicing.elna
blob: 838e10101347440440c21fef7dd6dd1edf1bd5a1 (plain)
1
2
3
4
5
6
7
8
program()
var
  s: [3]Int
  p: ^Int

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