aboutsummaryrefslogtreecommitdiff
path: root/testsuite/fail_compilation/assign_const_to_pointer.elna
blob: 50e4a44e3b25e3563724b1232e88c241bd34f4b2 (plain)
1
2
3
4
5
6
7
8
9
10
var
  c: const Int := 2
  p: Pointer

program()
begin
  p := @c (* @Error Expected type 'Pointer', but got '\^const Int' *)
return 0u8

end.