### 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
p_identifier->variable_source = member.variable;
					member.variable->usages += 1;
					break;
				case GDScriptParser::ClassNode::Member::SIGNAL:
					p_identifier->source = GDScriptParser::IdentifierNode::MEMBER_SIGNAL;
					break;
				case GDScriptParser::ClassNode::Member::FUNCTION:
					p_identifier->set_datatype(make_callable_type(member.function->info));
					break;
				case GDScriptParser::ClassNode::Member::CLASS:
					if (p_base != nullptr && p_base->is_constant) {
						p_identifier->is_constant = true;
						p_identifier->source = GDScriptParser::IdentifierNode::MEMBER_CONSTANT;
						Error err = OK;
						GDScript *scr = GDScriptCache::get_full_script(base.script_path, err).ptr();
						ERR_FAIL_COND_MSG(err != OK, "Error while getting subscript full script.");
						scr = scr->find_class(p_identifier->get_datatype().class_type->fqcn);
						p_identifier->reduced_value = scr;
					}
					break;
				default:
					break; 
			}
			return;
		}
		
		
		if (base_class->outer != nullptr) {
			List<GDScriptParser::ClassNode *> script_classes;
			get_class_node_current_scope_classes(base_class->outer, &script_classes);