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

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

end.