Fix function type inference always resolving to void.