aboutsummaryrefslogtreecommitdiff
path: root/testsuite/fail_compilation/compile_time_array_ptr.elna
blob: f11f2f25aeb6acf3055162e02bf1fcd1f5bd2ed4 (plain)
1
2
3
4
5
6
7
module

var
  source: [3]Int := [1, 2, 3]
  target: ^Int := source.ptr (* @Error Variable initializers must be constant expressions *)

end.