### Godot version

Godot 4.0 Beta 11 x64 Linux Official

### System information

Linux Mint 21.1 Cinnamon 64Bit Linux OS

### Issue description

Hi,

On Godot 4.0 Beta 10 everything was OK.
On new Godot 4.0 Beta 11, our game does not run?

Getting strange errors like below:
```
for index in range(0, 4):
	InterfaceCore.Icons.IconAnimationTimer[index] = -1
# Parser Error: Could not resolve member "Icons": Cyclic reference.
```

Any ideas?

### Steps to reproduce

Reproducible when running game on Godot 4.0 Beta 11 x64 Linux version.

### Minimal reproduction project

https://github.com/BetaMaxHero/GDScript_Godot_4_T-Story
#ifdef TOOLS_ENABLED
		p_script->member_lines[name] = inner_class->start_line;
#endif
		p_script->constants.insert(name, subclass); 
	}
	return OK;
}
Error GDScriptCompiler::_compile_class(GDScript *p_script, const GDScriptParser::ClassNode *p_class, bool p_keep_state) {
	
	for (int i = 0; i < p_class->members.size(); i++) {
		const GDScriptParser::ClassNode::Member &member = p_class->members[i];
		if (member.type == member.FUNCTION) {
			const GDScriptParser::FunctionNode *function = member.function;
			Error err = OK;
			_parse_function(err, p_script, p_class, function);
			if (err) {
				return err;
			}
		} else if (member.type == member.VARIABLE) {
			const GDScriptParser::VariableNode *variable = member.variable;
			if (variable->property == GDScriptParser::VariableNode::PROP_INLINE) {
				if (variable->setter != nullptr) {
					Error err = _parse_setter_getter(p_script, p_class, variable, true);
					if (err) {
						return err;
					}
				}
				if (variable->getter != nullptr) {
					Error err = _parse_setter_getter(p_script, p_class, variable, false);
					if (err) {