### Godot version

4.2 f5696c3

### System information

Windows 10 x64

### Issue description

![image](https://github.com/godotengine/godot/assets/2223172/7ad0e3b6-9599-4f7b-a07c-da54779e647a)


### Steps to reproduce

1. Add node
2. Attach a built-in script
3. Add child node
4. Add script to the child node
5. In some method write `get_parent().bui`

### Minimal reproduction project

N/A
Variant base_val;
						Variant::construct(base.type.builtin_type, base_val, nullptr, 0, err);
						bool valid = false;
						Variant res = base_val.get(index.value, &valid);
						if (valid) {
							r_type = _type_from_variant(res);
							r_type.value = Variant();
							r_type.type.is_constant = false;
							found = true;
						}
					}
				}
			} break;
			case GDScriptParser::Node::BINARY_OPERATOR: {
				const GDScriptParser::BinaryOpNode *op = static_cast<const GDScriptParser::BinaryOpNode *>(p_expression);
				if (op->variant_op == Variant::OP_MAX) {
					break;
				}
				GDScriptParser::CompletionContext context = p_context;
				context.current_line = op->start_line;
				GDScriptCompletionIdentifier p1;
				GDScriptCompletionIdentifier p2;
				if (!_guess_expression_type(context, op->left_operand, p1)) {
					found = false;
					break;
				}
				if (!_guess_expression_type(context, op->right_operand, p2)) {
					found = false;
					break;
				}