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
commit dc649684be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);