aboutsummaryrefslogtreecommitdiff
path: root/testsuite/fail_compilation/generic_uninferrable.elna
blob: 7eca7a999726eba41e343bfc57c9cdb2d568498a (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.