aboutsummaryrefslogtreecommitdiff
path: root/testsuite/fail_compilation/generic_uninferrable.elna
blob: 20d3d25c33381a45bbe06a1362e1343ce3ffcd43 (plain)
1
2
3
4
5
6
7
8
9
10
proc allocate#[R](size: Word) -> R extern

program()
var
  got: ^Word8
begin
  got := allocate(8u) (* @Error Type parameter 'R' of 'allocate' cannot be inferred *)
return 0u8

end.