Autocompletion: Try to guess method return type even if subscript base has no value

This commit is contained in:
HolonProduction committed 2025-01-11 23:50:43 +01:00
1 parent abf8e1e6f9
commit 24912d2010
3 files changed
+15 -1

No files matched your search

+1 -1
View File
@@ -1925,7 +1925,7 @@ static bool _guess_expression_type(GDScriptParser::CompletionContext &p_context,
}
}
if (!found && base.value.get_type() != Variant::NIL) {
if (!found) {
found = _guess_method_return_type_from_base(c, base, call->function_name, r_type);
}
}