aboutsummaryrefslogtreecommitdiff
path: root/testsuite/fail_compilation/assign_const_array_pointer.elna
blob: d8ecb7296e58340a57c8b31c485f631819512896 (plain)
1
2
3
4
5
6
7
8
9
10
11
module

proc f()
var
  p: ^[2]Int
  q: ^const [2]Int
begin
  p := q (* @Error Expected type '\^\[2\]Int', but got '\^const \[2\]Int' *)
return

end.