Inherit type of method result