aboutsummaryrefslogtreecommitdiff
path: root/testsuite/fail_compilation/generic_parameter_arithmetic.elna
blob: 9f6909de13d91ffc0e7f1f3221bf9b695a37175a (plain)
1
2
3
4
5
6
7
8
module

proc walk#[T](step: ^T)
begin
  step := step + 1 (* @Error Type parameter 'T' cannot be used in pointer arithmetic *)
return

end.