summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_analyzer.cpp
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2021-10-14 10:12:52 -0300
committerGitHub <noreply@github.com>2021-10-14 10:12:52 -0300
commitbf322bacdd99cdb81bd7870b0b196ef01652581c (patch)
treec204bfe6333f3dd0aff33d624011f7d8047ccafa /modules/gdscript/gdscript_analyzer.cpp
parentd952a84c3eb1a7d30530d594bb93f75cc562fcb5 (diff)
parent0ff0f64cd4009700f8f95db865320dc154349dff (diff)
downloadredot-engine-bf322bacdd99cdb81bd7870b0b196ef01652581c.tar.gz
Merge pull request #53726 from briansemrau/gd-outer-class
GDScript 2.0: Access outer scope classes
Diffstat (limited to 'modules/gdscript/gdscript_analyzer.cpp')
-rw-r--r--modules/gdscript/gdscript_analyzer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_analyzer.cpp b/modules/gdscript/gdscript_analyzer.cpp
index 8bd288cf0f..6b57784b1c 100644
--- a/modules/gdscript/gdscript_analyzer.cpp
+++ b/modules/gdscript/gdscript_analyzer.cpp
@@ -2683,6 +2683,11 @@ void GDScriptAnalyzer::reduce_identifier_from_base(GDScriptParser::IdentifierNod
p_identifier->is_constant = false;
return;
} break;
+ case GDScriptParser::ClassNode::Member::CLASS: {
+ resolve_class_interface(member.m_class);
+ p_identifier->set_datatype(member.m_class->get_datatype());
+ return;
+ } break;
default:
break;
}