Correctly handle functions with a return type but no argument