aboutsummaryrefslogtreecommitdiff
path: root/testsuite/fail_compilation/assign_void_call.elna
blob: 75f7c6b0354939be2a7629045e36e9d875c171f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
var
  x: Int

proc v()
return

program()
begin
  x := v() (* @Error Expected type 'Int', but the expression has no value *)
return 0u8

end.