### Godot version

4.0 Beta10

### System information

Windows 10, Vulkan, GTX1060

### Issue description

`PropertyTweener`'s methods' return value are not discarded and effect the unary operator at next line.

In Editor:
![in_editor](https://user-images.githubusercontent.com/61624558/210715100-04bdf283-7954-4be3-94ca-338987b24c5b.png)


In cpp:
![in_cpp](https://user-images.githubusercontent.com/61624558/210715127-519f6d54-fc15-468f-9aca-ba7d387a5a7b.png)


### Steps to reproduce

Just run the Minimal reproduction project.

### Minimal reproduction project

[Bug Report.zip](https://github.com/godotengine/godot/files/10349829/Bug.Report.zip)

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);