### 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
}
			}
			
			{
				
				const GDScriptParser::ClassNode *base_class = codegen.class_node;
				while (base_class != nullptr) {
					if (base_class->has_member(identifier)) {
						const GDScriptParser::ClassNode::Member &member = base_class->get_member(identifier);
						if (member.type == GDScriptParser::ClassNode::Member::FUNCTION || member.type == GDScriptParser::ClassNode::Member::SIGNAL) {
							
							GDScriptCodeGenerator::Address temp = codegen.add_temporary(); 
							GDScriptCodeGenerator::Address self(GDScriptCodeGenerator::Address::SELF);
							gen->write_get_named(temp, identifier, self);
							return temp;
						}
					}
					base_class = base_class->base_type.class_type;
				}
				
				GDScript *scr = codegen.script;
				GDScriptNativeClass *nc = nullptr;
				while (scr) {
					if (scr->native.is_valid()) {
						nc = scr->native.ptr();
					}
					scr = scr->_base;
				}
				if (nc && (ClassDB::has_signal(nc->get_name(), identifier) || ClassDB::has_method(nc->get_name(), identifier))) {