From e42318e41c979eac8544f548c5a2c69cc122358d Mon Sep 17 00:00:00 2001 From: Thakee Nathees Date: Wed, 13 May 2020 05:58:27 +0530 Subject: [PATCH] regression: var declaration type info parser bug fix (cherry picked from commit e5d735851d166b8c2475703fdb1dad8ddadf0da1) --- modules/gdscript/gdscript_parser.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp index ad9a484cce97..ea4d4ca6fb2f 100644 --- a/modules/gdscript/gdscript_parser.cpp +++ b/modules/gdscript/gdscript_parser.cpp @@ -7787,6 +7787,7 @@ void GDScriptParser::_check_class_level_types(ClassNode *p_class) { _mark_line_as_safe(v.line); v.data_type = _resolve_type(v.data_type, v.line); + v.initial_assignment->arguments[0]->set_datatype(v.data_type); if (v.expression) { DataType expr_type = _reduce_node_type(v.expression);