Revert "Return type can be inferred"

This reverts commit 889a370cf3e7fd34f2630a7a877469d409d14d7a.