### Godot version

v4.0.beta13.official [caacade56]

### System information

Windows 8.1

### Issue description

The `Unreachable code (statement after return) in function 'function_name()'` warning is given for functions that do not have unreachable code. The same code does not give this warning in v3.5.stable.official [991bb6ac7].

### Steps to reproduce

```
func warning(i: int) -> void:
  if i == 0:
    pass
  elif i == 1:
    return
  else:
    return
  print("yeah")
```

Removing either the `elif` or the `else` removes the warning.

### Minimal reproduction project

N/A; code in reproduction steps can be placed in any blank gdscript file to trigger the error.
} else {
			member->doc_description = get_doc_comment(doc_comment_line);
		}
	}
#endif 
	if (member->identifier != nullptr) {
		if (!((String)member->identifier->name).is_empty()) { 
#ifdef DEBUG_ENABLED
			List<MethodInfo> gdscript_funcs;
			GDScriptLanguage::get_singleton()->get_public_functions(&gdscript_funcs);
			for (MethodInfo &info : gdscript_funcs) {
				if (info.name == member->identifier->name) {
					push_warning(member->identifier, GDScriptWarning::SHADOWED_GLOBAL_IDENTIFIER, p_member_kind, member->identifier->name, "built-in function");
				}
			}
			if (Variant::has_utility_function(member->identifier->name)) {
				push_warning(member->identifier, GDScriptWarning::SHADOWED_GLOBAL_IDENTIFIER, p_member_kind, member->identifier->name, "built-in function");
			}
#endif
			if (current_class->members_indices.has(member->identifier->name)) {
				push_error(vformat(R"(%s "%s" has the same name as a previously declared %s.)", p_member_kind.capitalize(), member->identifier->name, current_class->get_member(member->identifier->name).get_type_name()), member->identifier);
			} else {
				current_class->add_member(member);
			}
		} else {
			current_class->add_member(member);
		}
	}
}
void GDScriptParser::parse_class_body(bool p_is_multiline) {