regression: var declaration type info parser bug fix

This commit is contained in:
Thakee Nathees 2020-05-13 05:58:27 +05:30
parent 2231673d42
commit e5d735851d
1 changed files with 1 additions and 0 deletions

View File

@ -7956,6 +7956,7 @@ void GDScriptParser::_check_class_level_types(ClassNode *p_class) {
_mark_line_as_safe(v.line); _mark_line_as_safe(v.line);
v.data_type = _resolve_type(v.data_type, 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) { if (v.expression) {
DataType expr_type = _reduce_node_type(v.expression); DataType expr_type = _reduce_node_type(v.expression);