Skip to content

Commit

Permalink
regression: var declaration type info parser bug fix
Browse files Browse the repository at this point in the history
(cherry picked from commit e5d7358)
  • Loading branch information
ThakeeNathees authored and akien-mga committed May 13, 2020
1 parent 6d7fb3d commit e42318e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/gdscript/gdscript_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e42318e

Please sign in to comment.