aboutsummaryrefslogtreecommitdiff
path: root/testsuite/fail_compilation/generic_uninferrable.elna
blob: b3556d627a49701c381372348cf3955897a17be4 (plain)
1
2
3
4
5
6
7
8
9
10
program()
var
  got: ^Word8

proc allocate#[R](size: Word) -> R
extern

begin
  got := allocate(8u) (* @Error Type parameter 'R' of 'allocate' cannot be inferred *)
end.