Bug
_infer_fncall_vera_type in vera/wasm/inference.py has no case for apply_fn(closure, ...). When the result of apply_fn is passed to array_append (e.g. array_append(acc, apply_fn(fn, elem))), the element type cannot be inferred, causing the append to fail.
Impact
Any use of apply_fn whose result is passed to a built-in that needs Vera type inference (like array_append) fails with E602.
Fix
Added apply_fn case that resolves the closure's return type via type alias lookup and type parameter substitution. Fixed in the feat/array-operations branch.
Bug
_infer_fncall_vera_typeinvera/wasm/inference.pyhas no case forapply_fn(closure, ...). When the result ofapply_fnis passed toarray_append(e.g.array_append(acc, apply_fn(fn, elem))), the element type cannot be inferred, causing the append to fail.Impact
Any use of
apply_fnwhose result is passed to a built-in that needs Vera type inference (likearray_append) fails with E602.Fix
Added
apply_fncase that resolves the closure's return type via type alias lookup and type parameter substitution. Fixed in thefeat/array-operationsbranch.