1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Merge pull request #38708 from ThakeeNathees/init-assign-type-parser-bug-fix

regression: var declaration type info parser bug fix
This commit is contained in:
Rémi Verschelde
2020-05-13 15:41:28 +02:00
committed by GitHub

View File

@@ -7959,6 +7959,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);