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

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