### Godot version

v4.0.beta.custom_build [1d14c054a]

### System information

Kubuntu 22.10

### Issue description

Regression in master (in beta 10 the following script works correctly).

### Steps to reproduce

```gdscript
@tool
extends EditorScript

func wait(time: float) -> void:
    await get_editor_interface().get_tree().create_timer(time).timeout

func _run() -> void:
    reference()
    # Error: Cannot get return value of call to "wait()" because it returns "void".
    await wait(1.0)
    print("Test")
    unreference()
```

### Minimal reproduction project

N/A
return;
	}
	GDScriptParser::DataType assignee_type = p_assignment->assignee->get_datatype();
	
	if (assignee_type.has_container_element_type() && p_assignment->assigned_value->type == GDScriptParser::Node::ARRAY) {
		update_array_literal_element_type(assignee_type, static_cast<GDScriptParser::ArrayNode *>(p_assignment->assigned_value));
	}
	GDScriptParser::DataType assigned_value_type = p_assignment->assigned_value->get_datatype();
	if (assignee_type.is_constant) {
		push_error("Cannot assign a new value to a constant.", p_assignment->assignee);
	}
	bool compatible = true;
	GDScriptParser::DataType op_type = assigned_value_type;
	if (p_assignment->operation != GDScriptParser::AssignmentNode::OP_NONE) {
		op_type = get_operation_type(p_assignment->variant_op, assignee_type, assigned_value_type, compatible, p_assignment->assigned_value);
	}
	p_assignment->set_datatype(op_type);
	if (assignee_type.is_hard_type() && !assignee_type.is_variant() && op_type.is_hard_type()) {
		if (compatible) {
			compatible = is_type_compatible(assignee_type, op_type, true, p_assignment->assigned_value);
			if (!compatible) {
				
				if (!is_type_compatible(op_type, assignee_type, true)) {
					push_error(vformat(R"(Cannot assign a value of type "%s" to a target of type "%s".)", assigned_value_type.to_string(), assignee_type.to_string()), p_assignment->assigned_value);
				} else {
					
					mark_node_unsafe(p_assignment);
					p_assignment->use_conversion_assign = true;
				}
			}