finalize_missing_return_fail.out
1 Error [ETYC0372106]: An async function is not allowed to return a value. 2 --> compiler-test:10:5 3 | 4 10 | async function fin_mint(public receiver: address, public amount: u64) -> u64 { 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 11 | Mapping::set(account, receiver, amount); 7 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 8 12 | } 9 | ^ 10 | 11 = Remove an output type in the function signature, and remove the return statement from the function. Note that the future returned by async functions is automatically inferred, and must not be explicitly written. 12 Error [ETYC0372036]: Function must return a value. 13 --> compiler-test:10:5 14 | 15 10 | async function fin_mint(public receiver: address, public amount: u64) -> u64 { 16 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 17 11 | Mapping::set(account, receiver, amount); 18 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 19 12 | } 20 | ^