Very simple inferencing for callback functions parameters