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

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