Event handler return type mismatch

The return type of the event does not match the return type of the function when attaching an event function to an object through a variant.